> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://regiostech.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Create Buy X Get Y Discounts

Sometimes, you want to offer customers a special promotion where buying one product unlocks a discount on another. 

Using our [advanced logic builder](/en/article/about-the-advanced-settings-page-1xxaj2u/), you can create a Buy X Get Y discount easily.

![Screenshot of completed Buy X Get Y setup](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_1mu6lww.png)

[![](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_1mq6bct.png)](https://www.loom.com/share/c3a188ca96444eea9b56bb92bc730956?sid=5c3397dc-a3e5-4716-8917-a4b204e68427)

**Click the thumbnail above to watch a video demonstration of this setup.**

1. Click on "Create Product Discount" in the app.
2. Name the discount (e.g., Buy X Test) and click on "Edit Logic."
3. Choose the "Buy X Get Y" template.
4. Set the quantity to trigger the discount (e.g., every 2 Example Product 1).
5. Specify the specific products for the discount.
6. Optionally set a maximum number of uses per order.
7. Select the discount type (Get Y) and set the discount percentage (e.g., 50%) for Example Product 2.
8. Review the logic and click "Save."

## How can I make a BXGY where the X and Y are the same product?
![Screenshot of a "Buy X, Get X" offer](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_1om9zre.png)

Make sure the requirement quantity/price is equal to the sum of both the non-discounted and discounted products.

For example, if you have a Buy 1 Shoe, Get 1 Shoe Free, then you need a discount like this:

> Buy X (2 Shoe) → Apply discount (Get Y, Customer gets 1 Shoe, 100%)

Otherwise, if your Buy X had a quantity of 1, both shoes would become free instead of just 1.

## How can I exclude a product from my Buy X step?

![How to exclude product from Buy X step](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_1i7cvgr.png)

You can easily use a "Check if" step before a "Buy X" step if you want to exclude specific products from being considered in the requirements of the "Buy X" step.

# Your Feedback Matters
Your review helps keep this small business running. Please [leave one](https://apps.shopify.com/regios-automatic-discounts#modal-show=ReviewListingModal) on the Shopify App Store.