WooCommerce Auto Update Cart When Quantity Changes

Last Updated : April 15, 2020

WooCommerce auto update cart when quantity changes

Do you want WooCommerce auto update cart when quantity changes. Yes, with a simple php function with two lines of JQuery and the result is great!

When you change the product quantity this JQuery code will update your cart data jQuery(“[name=’update_cart’]”).trigger(“click”);

Use one of two code snippet within theme functions.php

Custom WooCommerce Plugin Development
7 Things You Should Never Do With Your WooCommerce Store
Flatsome Theme Customization
WooHero WooCommerce Store Customizer

Share post with others

Leave a Comment