Editing Product and Pricing Fields in Edit Entry
GravityView supports editing Product fields in GravityView's Edit Entry page.
This includes the following field types:
- Shipping
- Quantity
- Options
- Product
- Shipping
- Calculation
- Price
- Total **
** Total fields can only be displayed when all form fields are shown in the Edit Entry configuration.
GravityView disables editing product fields by default if you use a payment gateway add-on (PayPal, Stripe, etc.) on your form and the entry has associated transaction data.
Displaying pricing fields when entries have payment associated with them
If you want to enable editing pricing fields inside GravityView's Edit Entry page, here's a code snippet you can add to your website:
add_filter( 'gravityview/edit_entry/hide-product-fields', '__return_false' );
After using this code snippet, pricing fields will be visible and editable, but GravityView will not update the payment record on the payment gateway when you edit the entry. Just the product field values. Editing the payment record is currently not possible.
This code does not allow product fields to be editable inside the Gravity Forms Entries page. It will only work on GravityView's Edit Entry page.
Coupon fields are handled differently.
If you use the Coupon Addon, you must override the field display separately. You can override the coupon field using the gravityview/edit_entry/hide-coupon-fields
filter like so:
add_filter( 'gravityview/edit_entry/hide-coupon-fields', '__return_false' );
Not sure where to add the code snippets above? See this doc.