Viewing 1 replies (of 1 total)
  • Autoship devs have a code and snippet for that, we use it in our site. As it to the header.

    <script>
    jQuery( function ($) {
    
    $(document).on( 'change' , '.woocommerce-cart-form .autoship-type input[type=radio], .woocommerce-cart-form .autoship-frequency .autoship-frequency-select', function(e) {
    
    var $cartUpdateButton = $( '.woocommerce-cart-form :input[name="update_cart"]' );
    
    if ( typeof $cartUpdateButton !== 'undefined' ){
    $cartUpdateButton.prop( 'disabled', false ).attr( 'aria-disabled', false );
    $cartUpdateButton.trigger('click');
    }
    	
    });
    
    });
    </script>
Viewing 1 replies (of 1 total)

The topic ‘Autoupdate Cart’ is closed to new replies.