Custom code to automatically remove product from cart

zied_drira
Shopify Partner
28 2 4

Hello,

 

I am trying to hard code a free gift above 80€ in cart.

I am using: Dawn Theme 7.0.1.

 

I could make the code to add the Gift to cart when the cart amount is above 80€ but I couldn’t find a way to remove automatically the gift when the user removes items from cart and the cart is below 80€.

 

Someone knows how to do it please ?

Thank you

Replies 2 (2)

Dan-From-Ryviu
Shopify Partner
8020 1563 1587

Hi @zied_drira 

Could you share your custom code?

- Helpful? Like and Accept solution to let me know or Buy me coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Enjoy 1 month of Shopify for $1. Sign up now.

zied_drira
Shopify Partner
28 2 4

Hello,
I didn’t find a way to create a function that removes a product from cart based on cart value, so I used an app.