Shopify.onCartUpdate

Highlighted
New Member
2 0 0
Does this function fire when a product is added to cart through ajax? 
 
Shopify.onCartUpdate = function(cart) {
  alert('There are now ' + cart.item_count + ' items in the cart.');
};
 
I tried using it multiple time when a user adds product to cart and nothing is happening?
0 Likes