> ## Documentation Index
> Fetch the complete documentation index at: https://neezon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Buy X Get Y, BOGO, and gift with purchase on Shopify

> Buy X Get Y and gift with purchase on Shopify with Smarty: buy a quantity or spend a threshold to get items free or discounted, or tiered gifts. Pro plan.

> [!NOTE]
>
> **Full setting encyclopedia:** [Features](https://neezon.com/docs/smarty-discounts/features.md) · **BXGY mechanics:** [Features — BXGY section](https://neezon.com/docs/smarty-discounts/features.md#buy-x-get-y-variants)

> [!TIP]
>
> Availability follows your store **billing** — see **[Plans](https://neezon.com/docs/smarty-discounts/plans.md)**. Need a starting point? Open [Use a template](https://neezon.com/docs/smarty-discounts/use-templates.md) or browse the [Templates](https://neezon.com/docs/smarty-discounts/templates.md).

## Quick answer

### How do I set up buy 2 get 1 free on Shopify?

Create a **Buy X Get Y** discount (**Pro** plan), set **Customer buy** to a quantity of 2 from your collection or SKUs, and set **Customer get** to 1 item at **100% off**. The offer repeats for each full group of 2, until the get items run out. **Number of uses per order** caps that. A new offer starts at 0, which means no cap.

### How do tiered free gifts work?

A gift is automatic (**Pro**): the customer does not enter a code. With **Auto add to cart** on, the online store adds only the gift for the highest tier the cart has reached. Checkout does not add a product. It takes the full price off gift units already in the cart, and the checkout message is the discount **title**. If that gift is not in the cart, checkout does not discount it. Each tier that applies uses one **Number of uses per order**. A new gift starts at 1, so only the highest tier whose gift is in the cart is discounted. Set it to 0 for no limit, and checkout can discount more than one tier.

## What you can configure (by area)

These are the main areas in the current screen order for BXGY discounts.

| Area | What it controls | Example use cases |
| - | - | - |
| **Discount value / thresholds** | The reward amount or the spend / quantity thresholds that drive the offer | 100% off the get item; spend tiers for gifts |
| **Customer buy** | What the customer must **buy** first | **2** from collection **Hats**; **\$100** cart spend toward promo |
| **Customer gets** | What they **receive**, and **Number of uses per order** at the bottom of the first card | **1** free sock line; **100% off** on the get lines |
| **Strategy** | Tracked items, or optional **free shipping** when shown | \$50 → mug, \$100 → hoodie |
| **Eligibility for discount** | Who/cart may enter the BXGY (same idea as other types) | **Segment**, **market**, **logged-in** only |

Setup, tiered gifts, and checkout behavior are below. Short labels for the same controls are in [Features — BXGY](https://neezon.com/docs/smarty-discounts/features.md#buy-x-get-y-variants). A gift runs only as an automatic discount and can't be used with a code.

Shared options (automatic / code / bulk, dates, combines, limits) apply where the app exposes them: [Features](https://neezon.com/docs/smarty-discounts/features.md).

## Use cases → what to configure

| Your goal | Start with | Then tune |
| - | - | - |
| **Buy 2 get 1 free** | **Customer buy** (qty + collection/SKU) | **Customer get** (qty + **100% off** on get lines); **Number of uses per order** if one order should stop after a set number of groups |
| **Spend \$100, pick a gift** | **Discount value / thresholds** | **Customer get** for the gift; **Number of uses per order** (a new gift starts at 1) |
| **Tiered gifts (\$50 / \$100 / …)** | **Discount value / thresholds** | **Customer get** for each tier; **Eligibility for discount** if only some customers should see it |
| **Segment-only GWP** | **Eligibility for discount** (tag or segment) | **Customer buy** / **Customer get** rules on specific **SKUs** |
| **B2B bundles** | **Eligibility for discount** (**company**) | **Customer buy** quantity thresholds; **Strategy** for max get qty |
| **Avoid double-counting lines** | **Strategy** (tracked items if shown) | Align **Customer buy** and **Customer get** with [BXGY reference](https://neezon.com/docs/smarty-discounts/features.md#buy-x-get-y-variants) |

## When this type fits (summary)

| Scenario | Pattern |
| - | - |
| **Buy 2 get 1 free** | Buy rules on collection; get qty = 1 at 100% off. |
| **Spend \$100 pick a gift** | **Gift** variant: **spent** threshold + **single** or **tiered** gifts. |
| **Tiered gifts** | \$50 → mug, \$100 → hoodie; each tier **higher** than the last. |
| **Segment-only GWP** | Eligibility on **segment** + get rules on **sample SKU**. |
| **B2B swag** | **Company** + high **quantity** threshold → branded pack, **max qty** cap. |
| **Tracked sets** | **Strategy** can track items so the same lines do not re-trigger incorrectly. |

## Set up Buy X Get Y

**1. Create the discount**

In **Select discount type**, choose **Buy X get Y, Gift with purchase**. This type needs **Pro** ([Plans](https://neezon.com/docs/smarty-discounts/plans.md)).

**2. Choose the method**

Choose **Automatic**, **Discount code**, or **Bulk codes** when the editor shows that method. A gift does not: it stays **Automatic**, with no code.

**3. Set Customer buy**

Under **Customer buy**, set what the customer must purchase first: a quantity or a spend threshold, and which products count (a collection, specific SKUs, or the rules you add).

**4. Set Customer get**

Under **Customer get**, set the reward: how many items, which products, and the reduction — a percentage off, a fixed amount off, or **100% off** (free).

**5. Set how many times it applies**

**Number of uses per order** is at the bottom of the first **Buy X get Y** card, under **Customer gets**. It is how many times the offer can apply inside one order. A new Buy X Get Y offer starts at 0, which means no limit. A new gift starts at 1. **Maximum discount uses**, further down, is how many orders can redeem a code.

**6. Limit who qualifies**

**Eligibility for discount** is optional. Use it for a customer tag, segment, market, company, or a cart condition.

**7. Set stacking and dates**

**Combinations**, **Active dates**, and **Maximum discount uses** work the same way as on other discounts ([Features](https://neezon.com/docs/smarty-discounts/features.md)). **Free shipping** can also appear on this type when the plan includes it.

## How Buy X Get Y behaves

**Customer buy** and **Customer get** are separate. The buy side is what must be in the cart first. The get side is what is discounted: a percentage off, a fixed amount off, or free. Checkout is where the price is decided ([Storefront and checkout](https://neezon.com/docs/smarty-discounts/storefront-theme.md)).

### Repeats

One order gets the reward once for each full buy group that fits. Buying 4 when the rule is buy 2 get 1 is two groups, so two reward items, as long as the get items are in stock. **Number of uses per order** caps that count. 0 means no cap. A new Buy X Get Y offer is saved as 0.

### When buy and get overlap

If a product is on both sides, checkout reserves buy units from lines that are only on the buy side first. It then uses overlapping lines, highest price first. The discount goes to lines that are only on the get side first, then to leftover overlapping units, lowest price first.

### Other discounts

* **Combinations** on this discount chooses whether it can stack with other product, order, and shipping discounts in the shop.
* Inside one [Combine discount](https://neezon.com/docs/smarty-discounts/discount-types/combine-discounts.md), Buy X Get Y is a single tab, and it cannot sit next to a gift tab. Savings in that discount stack in tab order. **Stack with other savings in this discount** (on by default) skips items an earlier tab in the same discount already discounted.
* A gift in its own discount can still combine with other discounts. A gift and Buy X Get Y still cannot be the two halves of one discount, and a gift still cannot use a code.

## Tiered gifts

Tiered gifts are the gift form of this discount: the customer spends or buys enough, and a gift product is the reward. An automatic [Combine discount](https://neezon.com/docs/smarty-discounts/discount-types/combine-discounts.md) can include one **Gift** tab instead of Buy X Get Y. A gift cannot be a discount code, and it cannot be in the same discount as Buy X Get Y.

### Set up the tiers

**Add more tier** adds the next tier. You can add Tier 2 through Tier 5 (four tiers after the first). A new tier starts empty: no products and no threshold. Each tier card has **Remove tier**, **Free items**, and either **Buy minimum quantity of items** or **Buy minimum purchase amount** (one amount per currency). Gift quantities are **Set total quantity for all products** or **Set quantity per product**. The **Gift** tab on a Combine discount (**Add a gift**) uses this same editor.

On the **Summary** card, a spend tier is shown as “Spend at least” the amount, then the reward (for example, Spend at least \$50 → mug). That sentence is only on the **Summary** card. The discount list does not show it. A quantity tier does not use that sentence.

### Which tier checkout discounts

Example: \$50 → mug, \$100 → hoodie. **Number of uses per order** for a gift is in the same place as on Buy X Get Y: the bottom of the first card, under **Customer gets**.

Checkout can discount more than one tier. Each tier that applies counts as one **Number of uses per order**. A new gift is saved as 1, so in practice only the highest tier whose gift is already in the cart is discounted. A lower tier's gift that is also in the cart stays at full price. Set **Number of uses per order** to 0 for no limit, and checkout can discount each tier whose gift is in the cart, one use per tier.

### What the customer sees

The customer does not enter a code.

With **Auto add to cart** on, the theme adds only the highest tier's gift once the cart qualifies. Turn on the [theme app embed](https://neezon.com/docs/smarty-discounts/settings.md#theme-app-embed) so the online store can add that line.

Checkout never adds the gift. It takes the full price off gift units that are already in the cart. The message on that discount is the discount **title**. If the gift is not in the cart, there is no discount.

Test a cart under a threshold, on it, and above it, and read the checkout total.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.