On the cart page, you may spot a greyed out disabled “Update Cart” button.
This confuses a lot of users and only becomes clear when you change the product quantity and nothing happens.
That’s right, you have to manually update the cart instead of WooCommerce just updating it via AJAX.
The first step is to hide the pesky button and the second step is to introduce some jQuery which checks the input for changes and updates the cart accordingly.
/**
* Snippet Name: WooCommerce Automatically Update Cart On Quantity Change
* Snippet Author: ecommercehints.com
*/
// First, hide the Update Cart button
add_action( 'wp_head', 'ecommercehints_hide_update_cart_button' );
function ecommercehints_hide_update_cart_button() { ?>