After updating WooCommerce, the “Add to Cart” button on variable products remains disabled even when all variations are selected.
Investigation shows:
WooCommerce correctly triggers the found_variation event and enables the button.
WoodMart’s custom JavaScript is re-disabling the button immediately after, preventing users from adding variable products to the cart.
Expected behavior:
The “Add to Cart” button should remain enabled once a valid variation is selected.
Temporary workaround that fixes the issue:
jQuery(‘form.variations_form’).on(‘found_variation’, function(){
jQuery(‘.single_add_to_cart_button’).prop(‘disabled’, false);
});
Could you please update the theme JavaScript so that the Add to Cart button for variable products respects WooCommerce’s found_variation and reset_data events?
Thank you