Re: Using a code to add a free gift to cart

Solved

Using a code to add a free gift to cart

DylanJudi
Visitor
2 0 0

Hello all! I'm trying to create a discount code where once it's added, a free product is added to the cart. Right now on Shopify this is not possible - we have to add the product first and then use the code. This adds some friction which is not ideal. 

 

Any workaround available for this? Or any free app that's able to do the job? 

 

Thanks!

Accepted Solution (1)

tobebuilds
Shopify Partner
457 32 120

This is an accepted solution.

Hi DylanJudi,

 

In Shopify, discounts are only capable of calculating price reductions on items. They can't affect the cart in other ways, such as adding new line items.

 

You might want to search for an "auto add to cart" or "free gift with purchase" app in the Shopify App Store.

 

Alternatively, if you're on Shopify Plus, you might consider building a Checkout UI extensions custom app that:

  • Checks which discounts have been applied to the cart
  • If the desired discount has been applied, add the desired item to the cart
  • Add a special metafield or line-item property to the item you added, so that you can prevent automatically adding it again

 

Best,

Tobe

Founder, Regios Discounts app (4.9 stars, 59 reviews, Built for Shopify)
- Custom discounts made simple
- "Just about any discount you'll ever need"
- Built by an ex-Google software engineer

View solution in original post

Replies 2 (2)

tobebuilds
Shopify Partner
457 32 120

This is an accepted solution.

Hi DylanJudi,

 

In Shopify, discounts are only capable of calculating price reductions on items. They can't affect the cart in other ways, such as adding new line items.

 

You might want to search for an "auto add to cart" or "free gift with purchase" app in the Shopify App Store.

 

Alternatively, if you're on Shopify Plus, you might consider building a Checkout UI extensions custom app that:

  • Checks which discounts have been applied to the cart
  • If the desired discount has been applied, add the desired item to the cart
  • Add a special metafield or line-item property to the item you added, so that you can prevent automatically adding it again

 

Best,

Tobe

Founder, Regios Discounts app (4.9 stars, 59 reviews, Built for Shopify)
- Custom discounts made simple
- "Just about any discount you'll ever need"
- Built by an ex-Google software engineer
DylanJudi
Visitor
2 0 0

Thanks Tobe! Thought so, will give look for an app and give an update here on what works in case someone has the same problem.