Skip to content
Hand-E Solutions, to the home page

Guide

How to add a free gift with purchase in Shopify, automatically

Shopify's Buy X get Y discount makes a gift free, but according to the help center it never adds it to the cart itself. Hand-E AI Discounts adds the gift once the cart value is reached and removes it when the value drops below. For this, you switch on the app once in your theme editor, under App embeds.

By Max Handrik · Updated October 13, 2026

Gift above cart value card in Hand-E AI Discounts: needs a block added to your theme once, the gift doesn't count toward the threshold and disappears again if the cart drops below it

A gift the customer has to find first

Spend $60, get a free tote bag. With built-in tools you build this as Buy X get Y: a minimum purchase amount as the condition, the tote bag as the item the customer gets, and the value set to free. But the discount doesn't apply unless the bag is already in the cart.

Shopify's help center says customers have to add all items to their cart themselves and the free item is never added automatically. A customer who doesn't notice the bag doesn't get it, even though they're entitled to it.

The second gap shows up when the customer removes something. If the bag is still in the cart, the discount no longer applies and the bag sits there at its regular price. For a gift that comes and goes by itself, something in your theme has to put the bag into the cart and take it out again.

FeatureShopify aloneWith Hand-E AI Discounts
Gift gets into the cartthe customer adds itautomatically, once the app is switched on in the theme editor
Cart drops below the thresholditem stays, the discount is gonegift disappears again
Gift at checkoutfree as long as the condition is metfree, through the app's discount
Choice of several giftspossible through products or collectionsno, exactly one gift variant
Setupone discountone discount plus turning on the embed in the theme editor once

Natively: Buy X get Y with a minimum purchase amount

The native discount fully covers the pricing side. Adding and removing the item stays with the customer.

  • Setup: A Buy X get Y discount with a minimum purchase amount as the condition, the tote bag as the item the customer gets, and the value set to free. With the maximum number of uses per order you limit the gift to one.
  • Notice in the store: Since nothing happens automatically, you need a clearly visible note, for example in the cart or the announcement bar, that the bag can be added from $60.
  • No adjusting: If the customer removes products, the bag stays in the cart. If they overlook it, they pay for it.
  • After payment: According to the help center, Buy X get Y discounts created in the admin don't apply on the post-purchase page. That is the upsell page some stores show right after payment.
  • Good enough if: the gift is an extra the customer picks deliberately, for example a sample of their choice from a collection. That's what Buy X get Y is built for.

How to set up the gift in Hand-E AI Discounts

Two parts work together. The app embed in your theme puts the gift in the cart. The app's discount makes it free at checkout.

  1. Choose the Gift above cart value discount type.
  2. Pick exactly one variant as the gift, for example the tote bag in natural white.
  3. Enter the threshold, for example $60. The cart value is counted without the gift.
  4. In the Shopify admin, open the theme editor and turn on the Gift above cart value app embed. You do this once, not per discount.
  5. Test in your store: bring the cart above the threshold and check that the gift appears. Then remove an item and check that it disappears again.

Walkthrough: $60 threshold, tote bag worth $9.90

A customer buys coffee at $24.95 and a mug at $14.90. The table shows step by step what happens in the cart.

StepCart value without giftGiftCustomer pays for the products
2 × coffee$49.90not in the cart$49.90
plus 1 mug$64.80in the cart, $0.00 at checkout$64.80
mug removed again$49.90disappears again$49.90
a different cart at $52.00$52.00not in the cart$52.00

Limits you should know

  • Depends on your theme: With some themes, the gift only appears after the next page load. That happens when the theme doesn't tell the app right away that the cart changed.
  • One gift, one threshold: Each discount has exactly one gift variant above one cart value. A choice of several gifts isn't covered by this discount type.
  • No embed, no gift: If the app embed isn't turned on in the theme, nothing puts the gift in the cart.
  • Customer's own purchase: If the customer buys the item themselves, their line stays untouched. It isn't turned into the gift.
  • The gift is an automatic app discount and takes one of the 25 slots for active automatic discounts.
  • If you uninstall the app, Shopify removes the discount.

Common questions

Does the free gift disappear when the cart drops below the threshold?
Yes. If the cart value without the gift falls below the threshold, Hand-E AI Discounts removes the gift again. With native Buy X get Y, an item the customer added stays in the cart and the discount no longer applies.
Does the gift's own price count toward the free gift threshold?
No. The threshold is calculated from the cart without the gift. Otherwise the gift could keep itself above the threshold with its own price.
Why doesn't the free gift appear until the page reloads?
That happens when your theme doesn't tell the app right away that the cart changed. On the next page load, the gift is in the cart.
Can I let customers choose between several free gifts?
Not with this discount type, it works with exactly one gift variant. For a choice from a collection, Shopify's Buy X get Y is a good fit. There, the customer adds the item to the cart themselves.

Related problems