Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Why? If there is no qty change, nothing can be updated.

    Thread Starter vasaragova

    (@vasaragova)

    I have added some fields into cart page I want to after click on “Proceed to Checkout” trigger on “update cart” button but right now disabled so I cant able to after click on “Proceed to Checkout” cart updated then rediect to check out page.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Are the fields in the cart form? You can remove the disabled element with javascript.

    Thread Starter vasaragova

    (@vasaragova)

    Are the fields in the cart form? Yes

    I want to enable always “update cart” button.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    You can do it with javascript OR you can add your own update cart button which never gets disabled.

    Thread Starter vasaragova

    (@vasaragova)

    I try below code but didn’t work

    <input type=”submit” value=”Update Cart” name=”update_cart” id=”store_update_cart” class=”ubtn” disabled=””>

    <script type=”text/javascript”>
    jQuery( document ).ready(function() {
    jQuery(“.ubtn”).removeAttr(‘disabled’);
    });
    </script>

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    $( document.body ).on( 'updated_wc_div', function() {
    $( '.shop_table.cart' ).closest( 'form' ).find( 'input[name="update_cart"]' ).prop( 'disabled', false );
    } );
    Thread Starter vasaragova

    (@vasaragova)

    Thank You very much

    I have the same problem.

    I added the following script to my cart.php but it doesn’t work for me.

    <script>
    $( document.body ).on( 'updated_wc_div', function() {
    $( '.shop_table.cart' ).closest( 'form' ).find( 'input[name="update_cart"]' ).prop( 'disabled', false );
    } );
    </script>

    Please can you tell me how to fix it.

    Regards
    Michael

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘When I adde prodcut into cart then without qty change enable "Update cart" butto’ is closed to new replies.