Hi All,
I am adding script tag in my store via api. The script tag loading fine. In script tag i added this code
Shopify.onItemAdded = function(line_item) {
console.log(line_item.title + ' was added to your shopping cart.');
};
so whenever a product is added to cart i got the callback. so i want to do some work here. But this function never called.
i also tried to override
Shopify.onCartUpdate = function( cart ) {
console.log( cart );
};
this callback as well but still nothing happen. can you guys tell what i might be doing wrong.
I want that whenever a product is added to card i get control so i can do some work.
thanks!
User | Count |
---|---|
13 | |
12 | |
8 | |
8 | |
4 |