I was wondering if it's possible to remove an item from the cart if its added? We are using a bundling app that adds individual items to the cart as well as the "main bundle" I wanted to keep the individual items in the cart but the remove the main bundle product. Is there a script to remove an item based on the product id?
You can POST into /cart/change.js with quantity 0 and the id of the variant you want to delete from the cart. More info here - https://help.shopify.com/en/themes/development/getting-started/using-ajax-api#change-cart
Subject | Author | Latest Post |
---|---|---|
Subject | Author | Posted |
---|---|---|
13 hours ago | ||
12-12-2019 11:32 AM | ||
12-12-2019 11:23 AM | ||
12-11-2019 03:12 AM | ||
12-11-2019 12:52 AM |
User | Count |
---|---|
11 | |
7 | |
5 | |
3 | |
3 |