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

# BOGO scenario: buy one, get the same item free

> Set X and Y to one with a 100% discount, and test cart quantities, scope, and the maximum offer groups.

Use Buy X get Y for a same-product BOGO offer. Customers must add both units before one receives the free-item discount.

## Example settings

| Setting | Example value |
| - | - |
| Rule | Buy X get Y |
| Purchase quantity X | 1 |
| Discounted quantity Y | 1 |
| Purchase and discount scope | The same test product P |
| Discount | Percentage 100 |
| Maximum groups per order | 1 |

## Configuration steps

1. Create a campaign and add **买 X 件，另 Y 件减价** (Buy X get Y).
2. Enter `1` for X and Y, and select product P independently in both scopes.
3. Choose percentage `100` and set maximum groups per order to `1`.
4. Save and activate. Manually add two units of P before checking out.

## Checkout acceptance tests

| Test | Expected result |
| - | - |
| P costs 60; quantity 1 | No discount; no second unit is added |
| 2 P | One free unit; total 60 |
| 4 P, maximum one group | Only one free unit; total 180 |
| 1 P + 1 out-of-scope item | Does not qualify for same-product BOGO |

If the system should add the reward automatically, use [automatic gifts](https://discount.xrtotech.com/en/scenarios/gift-with-purchase.md). These rules have different cart behavior.

Then complete the [launch checklist](https://discount.xrtotech.com/en/getting-started/launch-checklist.md). Example amounts use the store currency; shipping and taxes are separate.


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