# Changelog

## 1.0-beta-2.33 | June 11, 2025

- Fixed an issue that caused total mismatch validation errors when using GP Page Transitions.

## 1.0-beta-2.32 | April 30, 2025

- Added support for searching forms within Product Configurator settings.

## 1.0-beta-2.31 | April 10, 2025

- Fixed an issue with applying conditional logic to product data on edit.

## 1.0-beta-2.30 | March 5, 2025

- Updated "Form" setting for WooCommerce Products to sort by form titles in alphabetical order.

## 1.0-beta-2.29 | February 19, 2025

- Improved handling of variations with AJAX forms.
- Fixed regression causing Variable Products to fail to add to cart on products with multi-page forms.

## 1.0-beta-2.28 | February 12, 2025

- Improved support for using plugins such as "Force Sells for WooCommerce" with GS Product Configurator which add multiple items to the cart at the same time.

## 1.0-beta-2.27 | January 29, 2025

- Added new [`gspc_process_form_on_add_to_cart`](https://gravitywiz.com/documentation/gspc_process_form_on_add_to_cart) PHP filter hook to bypass processing attached forms when adding products to cart.

## 1.0-beta-2.26 | January 22, 2025

- Improved integration with WooCommerce Subscriptions.
- Improved support for using Product Configurator forms in Elementor Popups.

## 1.0-beta-2.25 | January 8, 2025

- Improved support for Gravity Forms 2.9's AJAX form config handling for product data. This fixes issues concerning mismatching price errors during validation.
- Improved compatibility with AJAX submission changes in Gravity Forms 2.8.13 and newer.
- Fixed potential PHP warning with older versions of Gravity Forms.
- Fixed regression with GP Page Transitions where the "Add to cart" button wouldn't show on the last page if using Soft Validation.
- Fixed PHP notice.

## 1.0-beta-2.24 | December 18, 2024

- Improved compatibility with conditional page logic in Gravity Forms 2.9.

## 1.0-beta-2.23 | December 10, 2024

- Added updater icon/banner.
- Added support for using HTML in the "Item Meta Template" feed setting.

## 1.0-beta-2.22 | November 27, 2024

- Fixed issue where using anti-spam honeypot or reCAPTCHA in a product's attached form would prevent it from adding to the cart.

## 1.0-beta-2.21 | November 18, 2024

- Improved support for WooCommerce Subscriptions "Pay" flow for customers that are correcting an order that failed.

## 1.0-beta-2.20 | October 23, 2024

- Added new [`gspc_product_form_id`](https://gravitywiz.com/documentation/gspc_product_form_id) filter hook.

## 1.0-beta-2.19 | September 19, 2024

- Added frontend listener for WooCommerce Bookings to update the base product price in the form when dates/times are selected.
- Updated the cart item edit link to not show for products with a hidden visibility.

## 1.0-beta-2.18 | September 11, 2024

- Added support for using forms on Booking products powered by [WooCommerce Bookings](https://woocommerce.com/products/woocommerce-bookings/) and [YITH Booking and Appointment for WooCommerce](https://yithemes.com/themes/plugins/yith-woocommerce-booking/).

## 1.0-beta-2.17 | August 27, 2024

- Updated how the `gspc_rest_order_item_meta` filter hook is called to provide control over the entire order item meta array.
- Added missing `$format` argument for `gspc_addon_display_value` hook for product options.
- Fixed issue where Submit Button Conditional Logic would not evaluate correctly if the rules depend on a calculated field.

## 1.0-beta-2.16 | July 31, 2024

- Fixed issue where add-on prices were formatted as HTML when the format was set as `export`. This fixes an issue where add-on prices were sent as HTML to webhooks.

## 1.0-beta-2.15 | July 24, 2024

- Added [`gspc_rest_order_item_meta`](https://gravitywiz.com/documentation/gspc_rest_order_item_meta/) filter.

## 1.0-beta-2.14 | July 17, 2024

- Fixed issue where the "Added to WooCommerce Cart" notification might not include the WooCommerce product price.

## 1.0-beta-2.13 | July 9, 2024

- Fixed issue where forms with GS Product Configurator feeds could have the frontend JavaScript initialized even when not on a product page matching the products attached to the form.
- Fixed issue where products with disabled forms would still show "Select Options."
- Fixed PHP error if a product is not purchasable.
- Updated logic that checks if a product's form is outside of a schedule or the entry limit is reached to run earlier so it can be set to not be purchasable in more contexts.
- Fixed issue where products with an attached form would show options to be immediately added to the cart if using blocks such as `Products (Beta)` which would result in an AJAX error. Now, AJAX add-to-cart has been disabled for any products with an attached form.

## 1.0-beta-2.12 | June 26, 2024

- Fixed issue where delayed feeds were not handled for entries if their associated WooCommerce Order did not first pass through the `Processing` status.
- Added `format` argument to `gspc_addon_display_value` hook.

## 1.0-beta-2.11 | June 20, 2024

- Fixed issue where cart item editing could load the value of number fields with periods as decimals instead of commas.
- Added `order_item` and `addon` arguments to `gspc_order_item_meta` filter hook.
- Fixed an issue where validation schedule or entry limit message is not displayed.
- Refactored the custom MySQL table creation logic to use the `upgrade()` method provided by the Gravity Forms add-on API. This should resolve potential table not found errors if using WordPress multisite.

## 1.0-beta-2.10 | May 15, 2024

- Improved compatibility for Divi's WooCommerce Module.
- Added [`gspc_should_enqueue_frontend`](https://gravitywiz.com/documentation/gspc_should_enqueue_frontend) PHP filter hook.

## 1.0-beta-2.9 | May 9, 2024

- Updated Display Price feed setting to not have any impact in the admin to avoid confusion.
- Fixed regression issue where entries could be marked as completed both when WooCommerce Orders are going into the "Processing" status and "Completed" statuses resulting in multiple emails being sent.

## 1.0-beta-2.8

- Fixed issue where attached Gravity Forms entries would not get all the completed payment info when the associated WooCommerce Order goes directly to the Completed status.

## 1.0-beta-2.7

- Fixed issue where updating the quantity of cart items with an attached entry directly from the cart could cause them to be entirely removed from the cart.

## 1.0-beta-2.6

- Fixed an issue where the product info wouldn't be generated until viewing an entry in the admin. This could cause issues such as the regular price showing in the admin rather than the sale price if the sale ended at the time of viewing the product.
- Updated notification events to better map to WooCommerce statuses. "WooCommerce Order Completed" has been split into "WooCommerce Payment Processing (Paid)" and "WooCommerce Order Completed (Fulfilled)."

## 1.0-beta-2.5

- Fixed issue where the base WooCommerce product that is included in the form would not show a product name if using GP Preview Submission and a variation is used.
- Fixed issue where using a custom Item Meta Template could prevent the cart from loading in some situations.
- Fixed issue where products that are not purchasable would still show their attached forms.
- Fixed an error that occurs when editing an item that is marked `sold individually`
- Added support for Gravity Forms Save & Continue.

## 1.0-beta-2.4

- Fixed issue where Checkbox field values of `0` would not display in the cart unless another choice with a value other than `0` was selected.

## 1.0-beta-2.3

- Fixed issue where the `created_by` property would not be set on entries belonging to a product if using certain gateways such as HitPay.
- Fixed a potential PHP warning if mapping a field to the WooCommerce quantity and the field is not filled out or no longer exists.

## 1.0-beta-2.2

- Improved compatibility with GP Populate Anything when printing invoice with WooCommerce PDF Invoices.
- Updated the cart item editing link to be a new "Edit" link beside the link to the product to improve user experience.
- Updated `{price}` in the "Display Price" setting to use the original price HTML rather than pulling the base price from the product. This improves the behavior with Variable Products and other complex product types where the display price is more than just a single price.
- Updated product form display behavior to ignore all confirmations set on a form when it is being displayed in a product.

## 1.0-beta-2.1

- Fixed errors that could occur on product pages with forms after a submission is processed and then rejected for reasons outside of validation.
- Fixed issue where Option field choice values were not swapped to the label when populated with Populate Anything.
- Fixed issue where the GS Product Configurator notice could show at the top of the entry details for forms with GSPC feeds on entries submitted outside of WooCommerce.
- Fixed issue where adding a Total field into a form used in a WooCommerce Product could result in a validation error.
- Added internal APIs to make it possible to attach forms to products by product categories and product tags.
- Improved handling of the Product Image mapping when conditional logic is involved.
- Fixed issue where you could not update GS Product Configurator from the Plugins page in the admin. It was still possible to update it from Dashboard » Updates.

## 1.0-beta-2

- Fixed issue where the product image would not be reactive if using a dynamically populated field that depends on another field's value.
- Fixed issue where order items add-ons could be duplicated numerous times if using WooCommerce Blocks.
- Improved compatibility with [Advanced Conditional Logic for Gravity Forms](https://mcdonnell.nz/product/gravity-forms-advanced-conditional-logic/).
- Added support for updating the `gspc_wc_quantity` meta on entries when quantities of order items is changed after an order is placed.
- Improved compatibility with GP Inventory when using the "Entry per line item" mode.
- Updated "Entry Quantity Mode" to default to "Entry per line item" and deprecate "Entry per Quantity." See release post for more details on the why.
- Added functionality for editing cart items.

## 1.0-beta-1.11

- Added support for getting the price from the "Booking Cost" field type when using gAppointment.

## 1.0-beta-1.10

- Fixed an issue with the `{custom_price}` merge tag not working properly if using them for a range in the Display Price setting.

## 1.0-beta-1.9

- Fixed an issue where a failed transaction during checkout would cause a subsequent successful charge to complete the checkout without the Gravity Forms entry attached to the order.
- Added support for duplicating GS Product Configurator feeds when forms are duplicated.
- Improved compatibility with AJAX forms and the "Redirect to the cart page after successful addition" option in WooCommerce.

## 1.0-beta-1.8

- Fixed issue where order item add-ons could be output multiple times if using the new WooCommerce Blocks and HPOS.
- Added support for Submit Button Conditional Logic. If the submit button is to be hidden, the quantity input and add to cart button will be hidden.
- Added support for using `{custom_price[META_KEY]}` in the Display Price feed setting to load a price from the product's meta.
- Fixed issue where classes on the form were not applied to the `<form>` element on product pages.
- Fixed issue where the CSS file for the edit order screen wasn't being loaded when using newer versions of WooCommerce.
- Updated to trigger change event when base price of WooCommerce product changes (e.g. a variation is selected).
- Fixed a potential JavaScript error if using GP Nested Forms with Product Configurator.

## 1.0-beta-1.7

- Improved compatibility with Page Transitions and Page Conditional Logic when using Soft Validation.

## 1.0-beta-1.6

- Fixed issues where the Add to Cart and Quantity inputs could show on the first page of a multi-page form.
- Added support for [Appointments for WooCommerce](https://bookingwp.com/plugins/woocommerce-appointments/) by BookingWP.
- Added entry values to line item meta—instead of only IDs of the associated entries—in REST responses and WooCommerce webhook payloads.
- Fixed issue where certain delayed feed add-ons such as GP Google Sheets weren't running after orders were placed.

## 1.0-beta-1.5

- Improved compatibility with GP Populate Anything by replacing Live Merge Tags in product add-ons.
- Added new [`gspc_show_addon_price`](https://gravitywiz.com/documentation/gspc_show_addon_price) and [`gspc_show_addon_quantity`](https://gravitywiz.com/documentation/gspc_show_addon_quantity) PHP filter hooks.

## 1.0-beta-1.4

- Added support for using forms in Variable Subscription products.
- Fixed issue where the "Regular Price" notice in the Gravity Forms tab would show in the WooCommerce admin for subscription product types.
- Updated the cart to only show the quantity instead of a quantity input for products attached to a form that use the "Entry Per Quantity" Entry Item Quantity mode.
- Fixed issues with the quantity input and add to cart button not showing after a validation error when forms are embedded in products with AJAX enabled.

## 1.0-beta-1.3

- Fixed an issue where saving an order in the admin could cause the formatted metadata of order items with attached forms to become saved to the order item. This could result in the metadata showing twice and the new set to become outdated if the entry is updated.

## 1.0-beta-1.2

- Added support for mapping a field to the WooCommerce quantity.

## 1.0-beta-1.1

- Updated link to notification events documentation section.

## 1.0-beta-1

    - Hello World!
