Guides Deals and bundles

How to add a free gift to the cart automatically on Shopify

Shopify can make a gift free, but it never puts the gift in the cart. Here's why, your options, and what a good setup must get right.

By David Forbes, Director, Bento BundleLast checked 2 November 2026. 5 min read.

The short answer

Shopify's own Buy X Get Y discount can make a gift free, but it never adds the gift to the cart: the customer has to find it and add it themselves. To add it automatically, you need custom theme code or a gift app, such as Bento, that adds the gift when the customer qualifies and takes it out if they stop qualifying.

You want a simple promotion: spend $100, get a free tote. Shopify's discounts can make the tote free. What they can't do is put it in the cart.

What Shopify does on its own

Shopify's Buy X Get Y discount, automatic or with a code, takes the price of the gift down to zero once the customer qualifies. Shopify's own help is clear that the free item is never added to the cart for them. The customer has to find the gift, open its page and add it themselves.

If the gift isn't applying at all, see Buy X Get Y on Shopify: why it isn't working.

That causes three problems:

  • Customers miss it. Many never realise they've earned a gift, so the promotion does little.
  • Customers ask why it isn't free. If they add a different size or the wrong product, the discount doesn't apply.
  • It doesn't leave. If a customer removes items and drops below $100, the gift stays in the cart, now at full price.

Your three options

1. Keep it native

Use Buy X Get Y and make the gift easy to add: a note on your product pages and cart, with a link to the gift. It costs nothing and works for small promotions, but you'll lose some of the effect, and you'll answer a few "where's my gift?" emails.

2. Custom theme code

A developer can use Shopify's cart API to add the gift when the cart qualifies and remove it when it doesn't. It works, but every edge case is yours to handle: customers who removed the gift on purpose, gifts that sell out, carts changed on another tab, and theme updates that break the code.

3. An app

A free gift app handles adding, removing and messaging for you. Choose carefully, because the details below are where gift promotions go wrong.

What a good setup gets right

  • It adds the gift once the customer qualifies, and only if the gift is in stock.
  • It removes the gift when they stop qualifying, so nobody pays for a gift they didn't earn.
  • It respects a customer who removes the gift. Adding it back every time they take it out is infuriating.
  • It shows progress, like "Spend $12 more for a free tote", so customers shop towards it.
  • It never charges for the gift. If the discount and the cart ever disagree, the gift should come out rather than sit there at full price.
Keep the gift product available

Whatever you choose, the gift must stay active and available on your Online Store, or nothing can add it to a cart. To keep it out of your catalogue, use the Unlisted status. See How to hide a free gift product in Shopify.

Test it before you launch

  1. Add products until the cart is just below the threshold. No gift should appear.
  2. Add one more item. The gift should appear once, at no charge.
  3. Remove an item to drop below the threshold. The gift should leave.
  4. Go to checkout and check the gift is still free there.

Questions

Can Shopify add a free gift to the cart without an app?

No. Shopify's Buy X Get Y discount makes the gift free once it's in the cart, but the customer has to add it themselves. Adding it automatically needs custom theme code or an app.

Why isn't my free gift free at checkout?

Usually the gift's product, size or quantity doesn't match the discount's rules, the cart no longer qualifies, or another discount on the same item is applying instead. Check the discount's products, minimums and combinations in Shopify under Discounts.

Should I hide the gift product from my store?

Yes, with the Unlisted status. It keeps the gift out of collections and search while it can still be added to a cart. Draft and archived products can't be added at all.

Do customers get the gift if they use Buy it now?

Not if the gift is added in the cart. Buy it now and express checkout buttons on a product page skip the cart. Tell customers to use Add to cart, or hide those buttons on the products that earn the gift.

How Bento does it

A Bento offer adds the gift when the customer qualifies, by spending enough, buying enough, or buying the products you choose, and takes it out if they stop qualifying. A progress bar in the cart shows how close they are. If Shopify ever charges for the gift, Bento takes it out of the cart rather than let the customer pay.

One free gift offer is included on the Bite plan. Banquet adds several gifts at once, discounted gifts and offers limited to certain sizes. Bento can also give a free gift with a bundle or a bulk deal of its own.

Up next

Buy X Get Y on Shopify: why it isn't working, and how to add the free item automaticallyThe free item isn't free, or isn't there at all. Here's how Shopify's Buy X Get Y discount really works, the usual reasons it fails, and how to put the gift in the cart for customers.Deals and bundles4 min read

Bento does this for you

Bento is a Shopify app for bundles, bulk deals, mix & match and free gifts. It's free to start, with no order limits, and we'll help you set up your first deal.

Add Bento to Shopify

Step-by-step help:

More guides