How to quantity change plus and minus click not working in WooCommerce

The woocommerce products cart page in auto update cart after quantity change, if you want to change increase and decrease quantity in the WooCommerce cart page, you can on click to update the woocommerce cart after quantity is changed.

WooCommerce in cart page quantity increase and decrease on click


Always use child theme any wordpress website and copy below code and add this code in your function.php for woocommerce cart page. Use this below auto update the woocommerce cart after quantity plus and minus buttons.

add_action( 'wp_footer', 'cart_update_qty_script' ); function cart_update_qty_script() { if (is_cart()) : ?> <script> jQuery('div.woocommerce').on('change', '.qty', function(){ jQuery("[name='update_cart']").trigger("click"); }); </script> <?php endif;


afterthen open your footer.php and copy below js code and add this code in your footer.php.

<script> jQuery('div.woocommerce').on('change', '.qty', function(){ jQuery("[name='update_cart']").prop("disabled", false); jQuery("[name='update_cart']").trigger("click"); }); </script>

Post a Comment

0 Comments