By Default, the WooCommerce cart doesn’t auto update when quantity changed Easily update the cart for customers when product quantities change. Remove “Update Cart” button and Do It Automatically on Quantity Change.
When you change the product quantity, the cart will be immediately updated. Here the easiest way to do this with just a couple lines of code.
add this css code on :
appearance => Customize ==> Additional CSS
<style type=”text/css”>
.woocommerce button[name=”update_cart”],
.woocommerce input[name=”update_cart”] {
display: none;
}
</style>
then install plugin name : Insert Header And Footer
and add this script on footer :
<script>
var timeout;
jQuery( function( $ ) {
$(‘.woocommerce’).on(‘change’, ‘input.qty’, function(){
if ( timeout !== undefined ) {
clearTimeout( timeout );
}
timeout = setTimeout(function() {
$(“[name=’update_cart’]”).trigger(“click”);
}, 1000 ); // 1 second delay, half a second (500) seems comfortable too
});
} );
</script>