Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WooCommerce auto-update cart when quantity changed, relates with
* Auto update cart after quantity change
* @return string
add_action( 'woocommerce_after_cart', 'custom_after_cart' );
function custom_after_cart() {
echo '<script>
jQuery(document).ready(function($) {
var upd_cart_btn = $(".update-cart-button");
$(".cart-form").find(".qty").on("change", function(){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.