Last updated: August 2026

A customer adds $85 worth of skincare to their cart. Your gift-with-purchase promotion says anyone over $75 gets a free travel-size cleanser. But nothing happens — the gift never shows up, so the customer checks out without it, and you've quietly run a promotion nobody could actually redeem.

That's the most common failure mode for gift with purchase (GWP) on Shopify: the offer exists on paper, but the platform doesn't have a native way to automatically add a product to a customer's cart. Shopify can discount a product. It can't add one on its own — at least not without one of the three approaches below.

This guide covers all three: the native discount-code workaround, Shopify Functions (custom code), and a rule-based app. Each does something different, and which one you should use depends on how much friction you're willing to put between your customer and their free gift.

What Shopify can and can't do for gift with purchase natively

Shopify's built-in Buy X Get Y automatic discount can make a product free or discounted — but only if that product is already in the cart. As Shopify's own documentation notes, the free or discounted "get" item is never added to the cart automatically; customers have to add every qualifying item themselves. It doesn't add the product for the customer. So if your gift is a separate SKU the customer wasn't already planning to buy (the whole point of most GWP offers), native discounts alone won't do it.

That leaves merchants with two real options if they want the gift to appear automatically: custom code through Shopify Functions, or a rule-based app that handles the auto-add. Here's how each works.

Method 1: Native discount code (free, but customer has to act)

This is the "no app, no code" option, and it works — with a catch. You create a product for your gift, price it normally, then create an automatic discount that makes it free when the cart hits your threshold. The limitation: the customer still has to find that product and add it to their cart themselves before the discount applies.

Setup steps:

  1. In Shopify admin, go to Products and create your gift product (e.g., "Free Travel Cleanser — Gift").
  2. Set its price to whatever it would normally sell for (the discount will zero it out, not the product price itself).
  3. Go to Discounts and create a new automatic discount.
  4. Set the discount type to Buy X, get Y, with the "buy" condition set to your cart value or quantity threshold and the "get" product set to your gift item at 100% off.
  5. Save and test by adding items to a cart until you hit the threshold, then manually adding the gift product to confirm the discount applies.

The problem: most customers won't know a free gift is available unless you tell them, and even if they know, they have to leave checkout, find the product page, and add it manually. That friction kills redemption rates — and defeats the point of a GWP offer, which is supposed to feel automatic.

Method 2: Shopify Functions (requires a developer and Shopify Plus)

Shopify Functions can programmatically add a cart line item based on custom logic, which solves the auto-add problem natively. But it comes with real requirements: Shopify Functions for cart and checkout customization are a Shopify Plus feature, and building one means writing and deploying custom code (typically Rust or JavaScript compiled to WebAssembly) through the Shopify CLI.

What this involves, at a high level:

  1. Scope out the trigger logic (cart value, product, customer tag) with a developer.
  2. Build and test the function using Shopify's CLI and function templates.
  3. Deploy it to your store and configure it through a companion admin extension.
  4. Maintain it — Shopify Functions APIs evolve, and cart/checkout logic needs re-testing after platform updates.

This is the most flexible option, and it's the right call if your GWP logic is genuinely custom (e.g., tied to a proprietary loyalty tier system). For most merchants, it's a lot of engineering time and Shopify Plus cost to solve a problem that a purpose-built app already handles.

Method 3: A rule-based app (no code, no Shopify Plus)

This is the middle ground: automatic like Shopify Functions, but no developer or Plus subscription required. Apps like AutoCart handle the auto-add logic directly — you set a rule, and the app adds (and removes) the gift product for you. The same rule engine powers related offers too: see our Shopify BOGO setup guide for auto-adding a free second product on a buy-one-get-one deal.

Setup steps using AutoCart:

  1. Install AutoCart from the Shopify App Store and open the app dashboard.
  2. Create a new rule and choose your trigger condition — cart value threshold is the standard GWP setup (e.g., "cart total over $75").
  3. Select your offer type: free gift, and choose which product gets added.
  4. Set your display preferences — whether the gift shows in the cart drawer, and what message explains why it's there ("Free gift added — you unlocked it!").
  5. Decide whether customers can remove the auto-added gift, and save the rule.

Once live, the gift appears in the cart automatically the moment a customer crosses your threshold — no code, no discount code to remember, no manual product add. If the customer removes items and drops back under the threshold, AutoCart removes the gift automatically too, so nobody reaches checkout with a gift they no longer qualify for.

Choose the gift-with-purchase rule that matches your promotion

Once you have chosen the rule-based route, start with the trigger and reward your campaign actually promises:

These are different promotion intents, not interchangeable names for the same rule. Choosing the matching workflow keeps the trigger, cart message, and reward behavior aligned with what customers were promised.

Which gift with purchase method should you use?

Native discount Shopify Functions Rule-based app
Auto-adds the gift No — customer must add it Yes Yes
Requires Shopify Plus No Yes No
Requires a developer No Yes No
Setup time Minutes Days to weeks Minutes
Cost Free Plus subscription + dev time Low monthly fee
Auto-removes if cart drops below threshold No Depends on build Yes

If you're not on Shopify Plus and don't have developer time to spend, the native discount route is the only free option — but expect low redemption because of the friction. If you already have Shopify Plus and a genuinely custom logic requirement, Functions gives you full control. For most merchants running a standard GWP promotion — free sample over $X, seasonal gift, loyalty perk — a rule-based app gets you the automatic behavior without the Plus subscription or the build time.

Common mistakes when running gift with purchase on Shopify

  • Setting the threshold too close to your average order value. If most carts already sit at $70 and your threshold is $75, you're not lifting AOV — you're just giving away margin on orders that would have happened anyway.
  • Forgetting to set an end date. Seasonal GWP offers left running past their intended window quietly erode margin. Whichever method you use, put a reminder (or, with a rule-based app, an actual end date) on the rule.
  • Not messaging the offer clearly in the cart. If the gift silently appears with no explanation, customers sometimes think it's a mistake and remove it. State plainly why it's there.
  • Using a discount code for something that should be automatic. Codes work for planned promotions customers seek out. They add friction for "surprise and delight" gifts that are supposed to feel effortless.
  • Not testing the removal case. If a customer removes the qualifying item after the gift is added, check what happens to the gift. An orphaned free item at checkout is a margin leak — and if you're using the native discount method, this doesn't get cleaned up automatically.
  • Letting subscriptions or already-discounted products qualify. If a recurring order or a marked-down SKU re-triggers the gift every billing cycle, exclude those products from the rule instead of turning the whole promotion off.

Gift with purchase on Shopify: frequently asked questions

Can Shopify add a free product to the cart automatically? Not on its own. Shopify's native Buy X Get Y discount can set a product to free, but only after the customer manually adds it to their cart. To have the gift appear automatically, you need either a Shopify Functions build (Shopify Plus) or a rule-based app like AutoCart.

Do I need Shopify Plus to run a gift with purchase offer? No. You only need Shopify Plus if you build the auto-add logic with Shopify Functions. The native discount method and rule-based apps both work on standard Shopify plans, with no Plus subscription required.

How do I add a free gift at checkout without code? Install a rule-based app, set a trigger (such as cart total over $75), choose the free-gift product, and the app adds it to the cart automatically when the customer qualifies — no theme edits or developer needed.

What happens to the free gift if the customer drops below the threshold? With the native discount method, an orphaned gift can reach checkout because nothing removes it. A rule-based app like AutoCart removes the gift automatically the moment the cart no longer qualifies, protecting your margin.

Start with the setup that matches your store

If you're testing whether gift with purchase moves your AOV before investing in tooling, the native discount method costs nothing to try — just expect to actively promote it, since customers won't discover it on their own. Once you know the offer works and want it running automatically without babysitting it, that's when a rule-based app or custom Functions build makes sense.

For most merchants without Shopify Plus, that means a rule-based app. AutoCart handles the cart-value trigger, the free-gift add, and the automatic removal in one rule — set up in minutes, no theme edits required (here's our full install walkthrough if you're starting from scratch). Gift with purchase is just one lever, too — it's one of seven tactics that increase average order value on Shopify worth testing against your baseline. If you also need to reduce excess stock, learn how to move slow-moving Shopify inventory with free samples. If a free giveaway doesn't fit your margins, a discounted add-on product uses the same cart-value trigger but keeps some revenue on the item instead of giving it away.

Try AutoCart free on your Shopify store: apps.shopify.com/autocart-auto-add-to-cart