Buy X Get Y campaigns
Give free products for buying qualifying items: by product, by collection, by spend on a collection or storewide, with optional repeat rewards.
On this page
A Buy X Get Y campaign gives shoppers free products (Y) when they buy qualifying items (X). The reward is applied at checkout by Shopify, so there’s no code to enter.

Choose the type
Click Create campaign, choose Buy x Get y, then pick a Buy X Get Y Type:
| Type | The shopper qualifies by | What you set for X |
|---|---|---|
| Product-based | Buying specific products | Buy Quantity (X) and Select Buy Products |
| Collection-based | Buying from collections | Buy Quantity (X) and Select Collections |
| Spend X on Collection | Spending an amount in collections | Minimum Spend and Select Collections |
| Storewide (All Products) | Buying anything | Buy Quantity (X) only; no selection needed |
Set it up
- Set the buy requirement for your type, as in the table above.
- Under Get Reward (Y), enter the Get Quantity (Y) and click Select Reward Products. Reward products are always completely free for the shopper.
- Tick Repeat reward each time the condition is met if the offer should multiply. With “buy 2, get 1”, buying 4 gives 2 rewards. When it’s off, the reward is given once however much they buy.
- Check the Buy X Get Y Summary on the right, for example “Buy 1 item(s) → Get 1 item(s), Discount: 100% off”.
- Write the text in Content, set the Active dates, click Save, then change Status to Active.
What shoppers see
- If there are no more reward products than the Get Quantity, they’re added to the cart automatically.
- If there are more, a popup lets the shopper choose. With Repeat reward, they choose again for each extra reward, step by step (“Gift 1 of 3”, with Back and Next).
- Only reward items the cart drawer added are free. A shopper adding the same product themselves pays for it.
Write the offer text

| Field | Default |
|---|---|
| Batch Title | Buy X Get Y Offer |
| Offer Title | Special Offer Unlocked |
| Offer Subtitle | Buy {{buyQty}} item(s) to get {{getQty}} item(s) at a discount |
| Offer Subtitle (After Achievement) | Congratulations! This Buy X Get Y offer is now active for you 🎉 |
{{buyQty}} and {{getQty}} are replaced with the quantities you set. Type them in by hand; the {} button only offers the cart goal variables. The default subtitle says “at a discount”; since rewards are free, “free” is clearer.
Running alongside other campaigns
Every active Buy X Get Y campaign within its dates applies, alongside your cart goal. Priority only decides between cart goal campaigns.
Keep products out of the offer
Tag a product zupli-bxgy-exclude in Shopify and it won’t count toward any Buy X Get Y offer. Storewide offers also ignore free items and products with “gift” or “free” in their title. See Exclude products from offers.
Was this page helpful?
Thanks for letting us know.
Sorry about that. Tell us what was missing and we'll fix the page.