Woocommerce Gravity Forms Add-Ons icon

Release v3.8.2

Woocommerce Gravity Forms Add-Ons v3.8.2

What's new in v3.8.2

Woocommerce Gravity Forms Add-Ons v3.8.2 was released on . Powerful product add-ons, Gravity style See the full changelog below and compare with the complete version history.

Release details

Released
115.5 KB
File unavailable

Changelog

Fixed
  • On themes that add products to the cart via AJAX, a single click of Add to Cart could add a quantity of 2. Affected products used any attached form, including forms with no pricing fields. These themes (BeTheme is one, when WooCommerce's "Enable AJAX add to cart buttons on archives" setting is on) take over the Add to Cart button, serialise the whole form with FormData and post it to admin-ajax.php as a woocommerce_add_to_cart request. FormData omits submit buttons but includes hidden inputs, so the hidden "add-to-cart" field we add to the form travelled with that request - and WooCommerce then added the product twice from the one request, once through its form handler (which runs on any request carrying an add-to-cart value) and once through its AJAX handler. WooCommerce's own templates already carry that value on every purchasable product type - on the submit button for simple products, and on WooCommerce's own hidden input for variable and grouped ones - so our copy was redundant on a normal product page. It is only needed on the pages of a multi-page form, where we remove the submit button and move between pages by submitting the form in the background. It is now emitted only in that case, so the AJAX request no longer triggers the second add.

Compatibility

Requires WordPress
6.5
Tested up to
7.1

Verified safe

Woocommerce Gravity Forms Add-Ons v3.8.2 scanned clean with no security threats detected.

View full scan report