Comments on: Automatically Update the WooCommerce Cart on Quantity Change https://diviengine.com/update-woocommerce-cart-on-quantity-change/ Boost the power of your Divi website Fri, 17 Nov 2023 12:30:36 +0000 hourly 1 https://wordpress.org/?v=6.5.4 By: Divi Engine https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-238277 Thu, 07 Sep 2023 10:36:25 +0000 https://diviengine.com/?p=69257#comment-238277 In reply to Tsvetan Tsakov.

Sorry this code is just for the cart page

]]>
By: Tsvetan Tsakov https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-237983 Fri, 01 Sep 2023 11:44:11 +0000 https://diviengine.com/?p=69257#comment-237983 In reply to Divi Engine.

Hi, how to use it on the mini cart?

]]>
By: Divi Engine https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-188185 Tue, 08 Feb 2022 15:47:07 +0000 https://diviengine.com/?p=69257#comment-188185 In reply to Nathan.

That is a different ball game. Not so easy, sorry. If using BodyCommerce and our mini cart option – you can make this happen this way

]]>
By: Nathan https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-188171 Tue, 08 Feb 2022 12:38:27 +0000 https://diviengine.com/?p=69257#comment-188171 Thanks, works like a charm! I found this looking for a similar function for the single product page, using the Divi Woo Modules. Is there a similar code for that?

Cheers,
Nathan

]]>
By: Divi Engine https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-186755 Wed, 19 Jan 2022 10:28:41 +0000 https://diviengine.com/?p=69257#comment-186755 In reply to Sayna.

Pleasure, glad to help 😀

]]>
By: Sayna https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-186707 Tue, 18 Jan 2022 18:37:06 +0000 https://diviengine.com/?p=69257#comment-186707 Thank you so much, worked! 🙂

]]>
By: Divi Engine https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-178849 Fri, 15 Oct 2021 10:26:30 +0000 https://diviengine.com/?p=69257#comment-178849 In reply to Simon.

Perfect 😀

]]>
By: Simon https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-178805 Thu, 14 Oct 2021 18:18:40 +0000 https://diviengine.com/?p=69257#comment-178805 In reply to zakaria trari.

Thanks … exactly the script I needed!

]]>
By: Divi Engine https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-165842 Mon, 01 Mar 2021 14:27:16 +0000 https://diviengine.com/?p=69257#comment-165842 In reply to zakaria trari.

Nice one – appreciate it!

]]>
By: zakaria trari https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-165841 Mon, 01 Mar 2021 14:01:35 +0000 https://diviengine.com/?p=69257#comment-165841 cool it work perfect, I added a delay, the cart update will wait a while for the customer to click multiple times

var timeout;

jQuery(document).ready(function ($) { // On jQeury load
$(document).on(“click”, ‘.sub, .add’, function () { // When changing the custom “+” or “-”

if ( timeout !== undefined ) {
clearTimeout( timeout );
}

timeout = setTimeout(function() {

$(“[name=’update_cart’]”).trigger(“click”);
}, 5000 ); // 1 second delay, half a second (500) seems comfortable too// Update the cart
});
});

]]>
By: Divi Engine https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-165833 Mon, 01 Mar 2021 12:34:17 +0000 https://diviengine.com/?p=69257#comment-165833 In reply to Arangesan Ravichandran.

Thank you!

]]>
By: Arangesan Ravichandran https://diviengine.com/update-woocommerce-cart-on-quantity-change/#comment-165832 Mon, 01 Mar 2021 12:02:44 +0000 https://diviengine.com/?p=69257#comment-165832 work perfect…great tutorial

]]>