WooCommerce Auto Update Cart On Quantity Change

WooCommerce Auto Update Cart On Quantity Change:

By default WooCommerce does not update cart when you change the quantity, you need to click on the update cart button.

If you want to update cart on quantity change then you can simply do this by using jQuery change event. First, I will hide the “Update Cart” button and then when you will change the quantity, will auto trigger update cart button using jQuery trigger function.

Put the below snippet to your active theme/child theme functions.php file:

Snippet:

Gaurav Kumar

Hi, my name is Gaurav Kumar and I specialize in the Computer Software industry. I have been working as a Software Developer, and it's my passion to learn new things and sharing what I've learned.

Leave a Reply

Your email address will not be published. Required fields are marked *