Checkout-safe AOV systems for Shopify — free store audit available →
Get free audit
Guide

How to add a free gift with purchase on Shopify

July 4, 2026

Free gift with purchase on Shopify — set a threshold gift the native way vs an app, and why checkout-safe enforcement stops an unqualified gift staying free.

A free gift with purchase is one of the most reliable AOV nudges on Shopify — “spend $50, get a free sample” gives shoppers a concrete reason to add one more item. The trick is making sure the gift is only free when the cart actually qualifies. This guide covers how to set up a free gift with purchase on Shopify natively and with an app, and why checkout-safe enforcement matters.

Option 1: the native Buy-X-Get-Y discount

Shopify’s built-in Buy-X-Get-Y automatic discount can make a product free once the cart hits a condition. Use it for a simple gift when you don’t need product-page messaging.

  1. In your admin, go to Discounts → Create discount → Buy X get Y.
  2. Under Customer buys, set the requirement — a minimum quantity or a minimum purchase amount (your threshold), scoped to the right products or collections.
  3. Under Customer gets, choose the gift product and set the quantity to 1.
  4. Set the discounted value to Free (100% off).
  5. Choose Automatic discount, set dates, and Save.

Where it falls short: the native discount applies the gift, but it won’t show a “you’re $8 away from a free gift” message on the product page, and it won’t auto-add the gift to the cart. Shoppers often never learn the gift exists — so it doesn’t drive the extra spend you set it up for.

Option 2: a gift-with-purchase app

An app can merchandise the offer: show progress toward the threshold, auto-add the gift when the cart qualifies, and remove it when it doesn’t. Our free Profit Flow AOV Bundle includes a checkout-safe free gift with no feature caps.

  1. Install the app and open the free gift offer type.
  2. Set your threshold — a spend amount or a qualifying product.
  3. Choose the gift product shoppers receive.
  4. Enable progress messaging so shoppers see how close they are to unlocking it.
  5. Publish, then test: add items to cross the threshold, then remove one and confirm the gift is handled correctly at checkout.

For structures, thresholds and examples, see our free gift with purchase solution.

The risk with JavaScript-only gifts

Here’s the failure mode that costs merchants real money. Many cheap gift apps add and price the gift in storefront JavaScript. It looks correct in the cart drawer — but the cart is a separate, dynamic object. If a shopper removes the qualifying item after the gift was added, a JS-only app can leave the gift sitting in the cart at zero cost. You ship a free product to an order that never qualified. At scale, that’s a straight margin leak.

The fix: enforce the gift at checkout

The dependable approach is to enforce the free gift with a Shopify Function at checkout. The Function re-validates the cart server-side at the moment of payment: if the cart still qualifies, the gift is free; if it doesn’t, the Function removes it or charges for it. What the shopper sees is exactly what they’re charged — no unqualified freebies. That’s precisely why Profit Flow AOV Bundle runs the gift through a Function and calls it checkout-safe.

Checkout-safe vs JavaScript-only discounts on Shopify A JavaScript-only discount looks right on the product page but drops at checkout; a Shopify Function enforces the same price all the way through. What the shopper sees → what checkout charges PROFIT FLOW · SHOPIFY FUNCTION Product page Buy 2 · $86.40 Cart Checkout $86.40 JS-ONLY APP · STOREFRONT JAVASCRIPT Product page Buy 2 · $86.40 Cart edited (re-check fails) Checkout $96.00 Same offer, same shopper — only the enforcement differs. JS-only leaks margin or surprise-charges the buyer.
Checkout-safe: the discount and free gift are enforced by a Shopify Function, so what the shopper sees is exactly what they’re charged.

Getting the offer right

A free gift pairs well with volume pricing and BOGO — see how to increase average order value on Shopify for how the levers work together.

Want a free gift that’s never accidentally free? Install the free Profit Flow AOV Bundle — a checkout-safe gift with purchase plus quantity breaks, bundles and BOGO, all enforced by a Shopify Function. Want us to look at your basket economics first? Grab a free profit audit.

Share:

FAQ

Can you add a free gift with purchase on Shopify natively?
Partly. You can create a Buy-X-Get-Y automatic discount that makes a specific product free when the cart qualifies. It works, but it doesn't add gift messaging on the product page or an automatic add-to-cart, and it can be gamed if it isn't enforced server-side at checkout.
Why might a free gift stay free when it shouldn't?
Because many gift apps apply the offer in storefront JavaScript. If the shopper removes the qualifying item after the gift is added, a JS-only app can leave the gift in the cart at zero cost. A Shopify Function re-validates the cart at checkout and removes or charges the gift if the cart no longer qualifies.
What is a good threshold for a free gift?
Set the threshold slightly above your current average order value — often 15 to 25 percent higher. That nudges shoppers to add one more item to unlock the gift without discounting orders that would have happened anyway.

Start making more on every order

Launch a checkout-safe offer yourself, or have our team set it up and dial in your store.

Lifts average order value · No checkout edits · Works on any theme

Related reading