Repository Forums Support WooCommerce Extended Coupon Features PRO FREE products at PRO version: not updating Reply To: FREE products at PRO version: not updating

#1498
Soft79
Keymaster

Hmm, maybe because the button is still disabled at the first click.

Try this script instead:


if ( undefined !== jQuery ) {
    jQuery( function( $ ) {
        $( document ).on(
          'change input',
          '.wjecf-select-free-products :input',
          function() { 
            $('form.woocommerce-cart-form input[name="update_cart"]').click();
        } );
    } );
}

Make sure you clear browsercache before trying.