Why Choose Webiots for AI Solutions?
Company
About Webiots

our story

Building digital solutions that move businesses forward.
Web, AI  and technology solutions built for modern businesses
web solutions
Ai & automation
global clients
People, Purpose & Technology

Discover our journey, values & the talented people building meaningful digital solutions at Webiots.

Webiots Shopify app logo
Ultimate Product Options

Shopify limits products to just 3 native options. 

LUX

LUX enhances Shopify customization.

INDUSTRIES WE SERVE
Technology built for every ambition.
FLEXIBLE ENGAGEMENT

Choose the right business model

FLEXIBLE ENGAGEMENT

Choose the right business model

Case Studies

Real challenges. Proven results.

Featured Projects

Selected digital experiences.

All Projects

Explore our complete portfolio.

Why Choose Webiots for AI Solutions?

Shopify Free Gift With Purchase (2026): Setup, Auto-Add and Threshold Math

AI Summarize

Choose an assistant to instantly summarize this article.

In This Article
    Progress 0%
    1 Min Read

    Share this Article

    Shopify store free gift with purchase: a gift box unlocked in the cart at a spend threshold
    Published: November 26, 2026. Shopify settings are from the Shopify Help Center, checked November 2026. Test any code on a duplicate theme first.

    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 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

    TypeExampleBuilt into Shopify?
    Spend thresholdSpend $60, get a free toteYes, with a minimum purchase amount
    QuantityBuy 3 candles, get a free wick trimmerYes, with a minimum quantity
    Product-specificBuy the coffee machine, get a free cleaning kitYes, by choosing that product
    Choose your giftSpend $80, pick one of 4 mini productsYes, with a collection of gifts and 1 use per order
    Tiered$60 gets a sample, $120 gets a full-size productPartly: one automatic discount per tier
    Auto-added gift with progress bar“$12 to go for your free tote”, then the tote appears in the cartNo: 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 to Gift 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
    Call it something like “Gift-qualifying products” and hide it from your menus. Leave out anything you don’t want counted, such as gift cards.

    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 wantBuilt-in Buy X get YWorkaround
    Gift added to the cart automaticallyNoCart script or a free gift or cart drawer app
    Gift removed if the cart drops below the thresholdNo: the gift stays and is charged at full priceCart script, an app, or a clear cart message
    Progress bar (“$12 to go”)NoLiquid snippet like our free shipping bar, or an app
    Several gift tiersOne discount per tierSeparate automatic discounts, or an app with tiers
    Gift picker pop-upNo pop-up, but shoppers can pick from a gift collectionLink to the gift collection, or an app
    If you run one simple offer and promote it well, the built-in discount is enough. If you want the gift to appear by itself, add the script below or use a free gift or cart drawer 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.
    1. On a duplicate theme, go to Edit code and open layout/theme.liquid.
    2. Paste the code just before </body>.
    3. Replace 1234567890 with 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).
    4. Set THRESHOLD to your minimum in cents: $60 is 6000.
    5. 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

    Illustrative example: your AOV is $48, your margin is 55%, and the gift costs you $3 including packing. At a $60 threshold, a shopper who tops up from $48 to $60 adds $12 × 55% = $6.60 of margin, or $3.60 after the gift. If 30 of every 100 orders are already above $60, those gifts cost 30 × $3 = $90. You need 90 ÷ 3.60 = 25 upgraded orders per 100 just to break even. If that looks unlikely, raise the threshold, pick a cheaper gift, or limit the offer to new products you want people to try. Check your real AOV and how many orders are already above the threshold in Analytics > Reports before you choose.

    Free Gift Ideas by Store Type

    The best gifts cost you little, look valuable, ship light, and fit what the shopper just bought.
    Store typeGift ideas
    Beauty and skincareTravel-size products, samples of a new launch, a makeup bag
    ClothingSocks, a tote bag, a hair scrunchie
    Coffee and teaA sample pack, a measuring scoop, a mug
    JewelryA polishing cloth, a travel jewelry pouch
    Pet suppliesTreats, a toy, a poop bag holder
    Candles and homeA wick trimmer, matches, a mini candle
    A sample of a product you sell does double duty: it’s a gift today and a reason to reorder later.

    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.”
    Show the gift’s real value (“a $15 tote, free”) only if you really sell it at that price.

    Test Before You Launch

    TestExpected result
    Cart just below, exactly at, and above the thresholdGift is free only at or above it
    Gift in the cart, then remove paid itemsGift is removed, or the cart warns that it’s no longer free
    Gift on its ownCharged at full price (proves it doesn’t count toward the threshold)
    Two gifts in the cartOnly one is free
    A discount code plus the giftCombines the way you set in Combinations
    Gift sold outYou pause the offer or swap in a backup gift
    Mobile and desktop, cart page and drawerMessages and gift look right everywhere
    Also decide your returns rule before launch, for example “If you return items and fall below $60, we deduct the gift’s value from the refund”, and add it to the offer page.

    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
    For Black Friday and Cyber Monday, also look at repeat purchases of the product you gave as a sample over the next 60 days.

    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

    Update Log

    November 26, 2026: First published. Shopify settings checked against the sources below.

    Sources

    About the author

    Saloni

    Saloni is a dedicated content strategist with a strong understanding of eCommerce and a keen interest in Shopify. She focuses on creating engaging, SEO-friendly content and structured strategies that help Shopify merchants strengthen their online presence, improve customer engagement, and grow their businesses.

    Keep Reading