Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Free product based on cart value, with or without code

Free product based on cart value, with or without code

ced--ced
Shopify Partner
20 0 3

Hi,

 

I'm looking for a solution to offer a product for free in 2 scenario;

 

1. Free product added automatically to the cart based on the cart value.

 

2. Free product added automatically to the cart when a discount code is entered in the checkout.

 

Thanks

Replies 2 (2)

JoesIdeas
Shopify Partner
2442 225 658

1. To add a product to cart, you can use the ajax API to add the code to your theme. Pass this to your developer: https://shopify.dev/docs/api/ajax/reference/cart

 

2. If you're on Shopify Plus, you should be able to do this using the same ajax API (not 100% but I would say add the product to the cart then have it refresh the page). If not on Plus, I don't think you'd be able to edit the checkout to do this.

 

If you want to add the product after the order is placed, you can use Order Automator app to do that.

 

If you don't have a developer handy for option 1 / 2 and want a recommendation, feel free to PM me.

• Creator of Order Automator [auto tag, fulfill, connect FBA, daily jobs]
• Co-Creator of Product Automator [suite of features for products / collections]
• Shopify developer for 10+ years, store owner for 7 years
• Blog: Shopify Tips, Guides, and Automation Tactics

OneMobile
Shopify Partner
169 16 35

Hi @ced--ced 

 

From what I know, the Automatic Discounts & Upsells by Staytuned has both the two features you're looking for.

 

I hope that this helps!

If you find my answer helpful, please hit the Like button or Mark as solution to show me some encouragement.
OneMobile: The #1 Mobile App Builder For Shopify Merchants
Pick ready-made themes & customize with drag-n-drop editor.