Quick answer: To set up a free gift with purchase on Shopify, go to Discounts > Create discount > Buy X get Y > Automatic discount, set a minimum purchase amount on your products, choose the gift as the item customers get, set it to Free, and limit it to 1 use per order. Shopify never adds the gift to the cart, so tell shoppers to add it, or auto-add it with a small cart script or an app. Set the spend threshold about 20% to 35% above your average order value, and check that the gift costs less than the extra margin it brings in.
Key takeaways:
- Buy X get Y makes the gift free, but shoppers must add it themselves.
- Keep the gift at its real price, never $0.
- Exclude the gift from the products that count toward the threshold.
- Orders already above the threshold get the gift too, so do the math first.
In this guide
- What a free gift with purchase is
- 6 types of gift offers
- How to set it up in Shopify (6 steps)
- What Shopify’s built-in discount can’t do
- Auto-add the gift with code
- Threshold and margin math
- Gift ideas by store type
- Messages that get the gift claimed
- Test before you launch
- How to measure results
- FAQ
What Is a Free Gift With Purchase?
A free gift with purchase (GWP) is a free product a shopper gets when the order meets a rule, such as “Spend $60, get a free tote.” It’s a real product from your catalog, so it goes through normal stock, picking and shipping. Compared with a percentage discount, a gift keeps your prices intact and costs you the gift’s cost, not its retail price. A $15 tote that costs you $3 can feel more generous than $5 off.6 Types of Free Gift Offers
| Type | Example | Built into Shopify? |
|---|---|---|
| Spend threshold | Spend $60, get a free tote | Yes, with a minimum purchase amount |
| Quantity | Buy 3 candles, get a free wick trimmer | Yes, with a minimum quantity |
| Product-specific | Buy the coffee machine, get a free cleaning kit | Yes, by choosing that product |
| Choose your gift | Spend $80, pick one of 4 mini products | Yes, with a collection of gifts and 1 use per order |
| Tiered | $60 gets a sample, $120 gets a full-size product | Partly: one automatic discount per tier |
| Auto-added gift with progress bar | “$12 to go for your free tote”, then the tote appears in the cart | No: needs code or an app |
How to Set Up a Free Gift With Purchase in Shopify (6 Steps)
This uses Shopify’s built-in Buy X get Y discount. It’s free and works on every Shopify plan.Step 1: Create the gift product
Add the gift as a normal product with its real price, such as $15, and track its stock. Set its Product type toGift so you can keep it out of the qualifying products in step 2. Don’t price it at $0: a $0 product can be added to any cart without meeting the threshold.
Step 2: Create the qualifying collection (for store-wide offers)
Buy X get Y needs specific products or collections to count toward the minimum. For a store-wide offer, create an automated collection in Products > Collections > Create collection with these conditions, matching all of them:- Product price is greater than 0
- Product type is not equal to
Gift
Step 3: Create the discount
Go to Discounts > Create discount > Buy X get Y, choose Automatic discount, and give it a title shoppers will see at checkout, such as “Free tote with orders over $60”.Step 4: Set “Customer buys”
Choose Minimum purchase amount (for example $60) and select the qualifying collection from step 2. For a quantity offer, choose Minimum quantity of items instead. Shopify counts product prices only, never shipping or taxes, and counts items at their full price before other discounts (Shopify Help Center).Step 5: Set “Customer gets”
Set quantity 1, select the gift product, and under At a discounted value choose Free. Tick Set a maximum number of uses per order and enter 1. For a choose-your-gift offer, select a collection of gift products instead. With 1 use per order, the shopper adds the one they want and only that one is free.Step 6: Set combinations and dates, then save
Under Combinations, decide whether the gift can combine with product, order and shipping discounts. A discount that can’t combine with your Buy X get Y discount never applies at the same time. Set a start and end date if it’s a campaign, save, and test it (see the test list).Good to know: Shopify allows up to 25 active automatic discounts at a time (Shopify changelog). In retail stores, Buy X get Y discounts apply only with POS Pro.
What Shopify’s Built-In Discount Can’t Do
Shopify’s help page is clear: “The free or discounted ‘get’ item is never automatically added to the cart.” That’s the biggest gap, but not the only one.| What you might want | Built-in Buy X get Y | Workaround |
|---|---|---|
| Gift added to the cart automatically | No | Cart script or a free gift or cart drawer app |
| Gift removed if the cart drops below the threshold | No: the gift stays and is charged at full price | Cart script, an app, or a clear cart message |
| Progress bar (“$12 to go”) | No | Liquid snippet like our free shipping bar, or an app |
| Several gift tiers | One discount per tier | Separate automatic discounts, or an app with tiers |
| Gift picker pop-up | No pop-up, but shoppers can pick from a gift collection | Link to the gift collection, or an app |
How to Auto-Add the Gift With Code (Optional)
This small script checks the cart on the cart page: it adds the gift when the paid items reach the threshold and removes it when they drop below. Your Buy X get Y discount still makes the gift free at checkout.- On a duplicate theme, go to Edit code and open
layout/theme.liquid. - Paste the code just before
</body>. - Replace
1234567890with your gift’s variant ID (open the gift product in your admin, click the variant, and copy the number at the end of the URL). - Set
THRESHOLDto your minimum in cents: $60 is 6000. - Set your theme’s cart type to Page in the theme settings, or ask a developer to run the same check when your cart drawer opens.
{%- if template.name == 'cart' -%}
<script>
(function () {
var GIFT_VARIANT_ID = 1234567890; // your gift's variant ID
var THRESHOLD = 6000; // $60.00 in cents
fetch('/cart.js').then(function (r) { return r.json(); }).then(function (cart) {
var gift = null, paid = 0;
cart.items.forEach(function (item) {
if (item.variant_id === GIFT_VARIANT_ID) { gift = item; }
else { paid += item.original_line_price; }
});
var url = null, body = null;
if (paid >= THRESHOLD && !gift) {
url = '/cart/add.js';
body = { items: [{ id: GIFT_VARIANT_ID, quantity: 1 }] };
} else if (gift && (paid < THRESHOLD || gift.quantity > 1)) {
url = '/cart/change.js';
body = { id: gift.key, quantity: paid >= THRESHOLD ? 1 : 0 };
}
if (url) {
fetch(url, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body)
}).then(function () { window.location.reload(); });
}
});
})();
</script>
{%- endif -%}
What it does: it reads the cart with Shopify’s Cart API, adds up the paid items at full price (the same way Shopify counts the minimum), and adds, removes or resets the gift to 1, then reloads the cart once.
Limits: it works on the cart page, not inside a cart drawer, and it uses one threshold in one currency. If a shopper deletes the gift, it comes back on the next cart visit. For drawers, several currencies or tiers, a free gift or cart drawer app is less work.
How to Set the Threshold (and Check It Makes Money)
A common starting point is a threshold 20% to 35% above your average order value (AOV), so most shoppers are one small item away. Then check the math, because a gift has a catch: orders already above the threshold get the gift too, with no extra sale.Extra profit per upgraded order = (threshold − AOV) × margin % − gift cost
Upgrades needed to break even = (orders already above the threshold × gift cost) ÷ extra profit per upgraded order
Free Gift Ideas by Store Type
The best gifts cost you little, look valuable, ship light, and fit what the shopper just bought.| Store type | Gift ideas |
|---|---|
| Beauty and skincare | Travel-size products, samples of a new launch, a makeup bag |
| Clothing | Socks, a tote bag, a hair scrunchie |
| Coffee and tea | A sample pack, a measuring scoop, a mug |
| Jewelry | A polishing cloth, a travel jewelry pouch |
| Pet supplies | Treats, a toy, a poop bag holder |
| Candles and home | A wick trimmer, matches, a mini candle |
Messages That Get the Gift Claimed
With the built-in discount, shoppers must add the gift themselves, so say it plainly and link straight to the gift.- Announcement bar: “Free tote with orders over $60”
- Product page, near Add to cart: “Spend $60 and get a free tote. Add it to your cart and it’s free at checkout.”
- Cart, below the threshold: “Add $12 more to get your free tote”
- Cart, threshold reached: “You’ve earned a free tote! Add it to your cart” (link the words to the gift product)
- Cart, gift added but total dropped: “Your tote is no longer free. Add $5 more or remove it before checkout.”
Test Before You Launch
| Test | Expected result |
|---|---|
| Cart just below, exactly at, and above the threshold | Gift is free only at or above it |
| Gift in the cart, then remove paid items | Gift is removed, or the cart warns that it’s no longer free |
| Gift on its own | Charged at full price (proves it doesn’t count toward the threshold) |
| Two gifts in the cart | Only one is free |
| A discount code plus the gift | Combines the way you set in Combinations |
| Gift sold out | You pause the offer or swap in a backup gift |
| Mobile and desktop, cart page and drawer | Messages and gift look right everywhere |
How to Measure Results
AOV alone can look better while the gift quietly eats your margin. After 2 to 4 weeks, compare with the same period before:- AOV and conversion rate
- Share of orders at or above the threshold
- Gift claim rate: qualifying orders that actually included the gift. A low rate means shoppers didn’t see it.
- Gross profit per order after gift cost
The Bottom Line
Shopify’s Buy X get Y discount gives you a free gift with purchase on any plan, as long as you keep the gift at its real price, exclude it from the qualifying products and tell shoppers to add it. Set the threshold just above your AOV, run the break-even math, and test the edge cases. When you want the gift to appear on its own, with a progress bar or several tiers, add a cart script or a free gift or cart drawer app.Frequently Asked Questions
Can Shopify add a free gift to the cart automatically?
Not with its built-in discounts. Shopify says the free “get” item is never added to the cart automatically. Use a cart script like the one above, or an app.Is free gift with purchase available on the Basic plan?
Yes. Buy X get Y discounts are available on all Shopify plans.Should I set the gift’s price to $0?
No. A $0 product can be added to any cart without meeting the threshold. Keep its real price and let the discount make it free.What happens if the cart drops below the threshold?
The discount stops applying, and the gift is charged at its full price unless the shopper removes it. Show a warning in the cart, or remove it with a script.Can customers choose their free gift?
Yes. In “Customer gets”, select a collection of gifts and set 1 use per order. The shopper adds the one they want, and only one is free.Can I give different gifts at different spend levels?
Yes, with one automatic discount per level, such as $60 and $120. Set their combinations carefully and test a cart at each level.Does the gift count toward the minimum spend?
Only if it’s in the qualifying products. Give it its own product type and exclude that type from the qualifying collection.Does the gift work with discount codes?
It depends on the Combinations settings of both discounts. Shopify counts items toward the minimum at full price, and items with a discount that can’t combine don’t count at all.Related Reading
- Milestone Rewards in the Shopify Cart
- Shopify Free Shipping Bar
- Gift Options in the Shopify Cart
- Shopify BOGO
- Shopify Cart Drawer Guide
- Shopify Order Bump
