---
title: "How to Create a Shopify \"Buy X, Get Y\" Discount: A Step-by-Step Guide"
slug: "how-create-buy-x-get-y-discount-shopify"
url: "https://avada.io/blog/how-create-buy-x-get-y-discount-shopify/"
kind: "post"
author: "Sam Nguyen"
author_url: "https://avada.io/authors/sam/"
published_at: "2018-10-21T00:00:00+07:00"
updated_at: "2026-03-02T13:31:13+07:00"
description: "How to create a Shopify “Buy X, Get Y” discount. Step 1-Go to Discounts. Step 2-Click Create discount. Step 3-Hit the Buy X get Y. Step 4: Select Discount code."
categories: ["Shopify Guides"]
feature_image: "https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06071026/ECOMMERCE-Thumbnail-Template-720-x-400-px-18.jpg"
---

# How to Create a Shopify "Buy X, Get Y" Discount: A Step-by-Step Guide

Everyone loves a good deal, and Shopify’s **"Buy X, Get Y"** promotion taps into that excitement. This discount strategy lets merchants offer free or reduced-price items when certain purchase conditions are met, encouraging customers to buy more and boosting sales.

In this article, we’ll dive into why this offer is so effective and how to implement it using Shopify’s built-in features or third-party apps. You’ll also find tips for optimizing this promotion to suit your store's needs and maximize sales potential. Let’s get started!

## Why Should You Create a Buy X Get Y Discount On the Shopify Store?

Here are key reasons to create a **Buy X Get Y** discount on your Shopify store:

- **Increase Average Order Value**: Encourages customers to add more items to their cart to qualify for the offer.
- **Clear Out Inventory**: Helps move slow-selling items by pairing them with popular products.
- **Boost Customer Loyalty**: Provides a fun, engaging incentive that customers enjoy, leading to repeat purchases.
- **Promote New Products**: Drives interest in new items by offering them as the “Y” item in the discount.
- **Enhance Customer Satisfaction**: Creates a rewarding shopping experience, increasing overall satisfaction and likelihood of returning.

## How To Create Buy X Get Y Discount Code: A Step-By-Step Guide

### Step 1: From your Shopify admin, go to Discounts.

Log in to your Shopify admin dashboard, and click on the “**Discount**” button on the left side of the screen.

### Step 2: Click Create discount.

After being directed to the Discount section, click “**Create discount**” at the top right corner to create a new discount.

![Click Create discount.](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065803/Create-Buy-X-Get-Y-Discount.webp)

### **Step 3**: Hit the **Buy X Get Y** button.

In the Select discount type, choose “**Buy X Get Y**” discount.

![Hit the Buy X Get Y button.](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065800/Create-Buy-X-Get-Y-Discount-1.webp)

### **Step 4**: Under **Method**, select **Discount code**.

When prompted to select how the discount is applied, choose “**Discount code”** if you want customers to enter a code at checkout to activate the promotion manually.

![Under Method, select Discount code.](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065756/Create-Buy-X-Get-Y-Discount-2.webp)

### **Step 5**: Enter a name for your discount code (e.g., "buy-1-get-1-free"), or click **Generate** for a random code.

Name your discount code (e.g., “buyonegetonefree”) to make it easy to recognize. You can enter a custom code for branding or click **Generate** for a random alphanumeric code. This code will then be shared with customers during checkout so they can apply the discount.

![Enter a name for your discount code](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065735/discount-1.jpg)

### **Step 6**: Set "Customer Buys" Conditions

This step defines what the customers must do to be eligible for this discount:

- **Minimum quantity of items**: Customers must purchase certain items (e.g., buy 3).
- **Minimum purchase amount**: Select if the customer must spend a specific amount (e.g., $50).

![Minimum purchase amount](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06070211/step6-1.png)

- **Any items from**: Choose whether the qualifying purchases should come from **specific products** or **specific collections**. Use the **search field** or **Browse** button to add these products or collections to your promotion. If needed, remove any product or collection by clicking **X**.

![Choose whether the qualifying purchases should come from specific products or specific collections](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065733/discount-2.jpg)

### **Step 7:** Set "Customer Gets" Conditions

After determining what the customer buys, set what the customer will get with the promotion:

- **Quantity of items**: Define how many items will be discounted or free.
- In the **Any items from** section, choose **Specific products** or **Specific collections** that the customer will receive. Search for and add products or collections to be discounted. Use **X** to remove items if necessary.

![Set](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065731/discount-3.jpg)

### **Step 8**: Choose Discount Type

In the **At a discounted value** section, choose the type of discount the customer will receive:

- **Percentage**: Offer a percentage off the item’s price (e.g., 50% off).
- **Amount off each**: Provide a specific dollar amount off (e.g., $5 off).
- **Free**: The product is free (Buy 1, Get 1 Free).

![Choose Discount Type](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065729/discount-4.jpg)

### **Step 9**: (Optional) Set the **maximum number of uses per order**.

If you want to limit how many times the discount can be applied to an order, check the box that says **Set the maximum number of uses per order**. For example, if the discount should only apply once per transaction, you can set the limit to 1.

![Set the maximum number](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065752/Create-Buy-X-Get-Y-Discount-4.webp)

### **Step 10:** Define Customer Eligibility

In the **Customer eligibility** section, choose who can use this discount. Options include:

- **Everyone**: The discount is available to all customers.
- **Specific customer segments**: Target specific customer groups like VIPs, wholesale buyers, etc.
- **Specific customers**: Select individuals eligible for the discount using the search field.

![Define Customer Eligibility](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065727/discount-5.jpg)

### **Step 11:** Allow Discount Combinations (Optional)

In the **Combinations** section, choose if this discount can be used alongside other discount codes (e.g., free shipping). Specify any discount types that can be combined with the **Buy X Get Y** offer for clarity.

![Allow Discount Combinations](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065750/Create-Buy-X-Get-Y-Discount-5.webp)

### **Step 12:** Set Active Dates

Use the **calendar** to schedule the promotion’s start date.

- If you want the promotion to automatically expire, check “**Set end date”** and select an end date from the calendar. If no end date is set, the discount will remain active indefinitely.
- You can also set the discount to be active for a single day by selecting the same start and end date.

### **Step 13**: Click **Save discount**.

After creating the “Buy X get Y” discount, hit the “**Save discount**” button to keep all the changes at the bottom right of the Shopify admin dashboard.

![Click Save discount.](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065745/Create-Buy-X-Get-Y-Discount-6.webp)

Once saved, your new discount will be listed in the **Discounts tab**. You can share the discount code with customers via email or display it in your store. Customers must add all eligible products to their cart and enter the discount code at checkout to apply it.

## How To Create an Automatic Buy X Get Y Discount: A Detailed Guide

### **Step 1**: From your Shopify admin, go to **Discounts**.

Log in to your Shopify admin dashboard and click “**Discounts**” at the left side of the screen.

### **Step 2**: Click **Create discount**.

After being directed to the **Discount** section, click the “**Create discount**” button at the top right corner to create a new discount.

![Click Create discount.](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065803/Create-Buy-X-Get-Y-Discount.webp)

### **Step 3**: In the"Select discount type" menu, select **Buy X Get Y**.

In the **Select discount type** section, hit “**Buy X Get Y.**”

![select Buy X Get Y](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065800/Create-Buy-X-Get-Y-Discount-1.webp)

### **Step 4:** Set the Discount Method

In the **Create product discount** section, choose “**Automatic discount**” to apply an automatic discount when customers meet the specified criteria.

![Set the Discount Method](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065747/Create-Buy-X-Get-Y-Discount-7.webp)

### **Step 5:** Enter a Discount Title

In the **Title** section, enter a name for the discount, such as “buyonegetonefree.”

### **Step 7:** Configure "Customer Buys" Conditions

In the **Customer buys** section:

- Select **Minimum quantity of items** or **Minimum purchase amount**.
- Set the number of items a customer must buy or the amount they must spend to qualify.
- In **Any items from**, choose specific products or collections for the promotion. Use the search or browse feature to add these items, or click **X** to remove them.

![Configure](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06070211/step6-1.png)

### **Step 8:** Configure "Customer Gets" Conditions

In the **Customer gets** section:

- Set the quantity of items customers will receive as part of the discount.
- Choose specific products or collections to be discounted, and if you select the same as in the "**Customer buys**" section, the lower-priced item will be discounted.
- Search or browse to add discounted items, and remove any by clicking **X** as needed.

![Configure](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065725/discount-6.jpg)

### **Step 9:** Define the Discount Type

- In the **At a discounted value** section, choose:
  - **Percentage**: A percentage off.
  - **Amount off each**: A fixed amount off each item.
  - **Free**: The item is free.
- You can also set the **maximum number of uses per order**.

![Define the Discount Type](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065740/Create-Buy-X-Get-Y-Discount-9.webp)

### **Step 10:** Set Active Dates

- Set the **start date** using the calendar.
- If necessary, set an **end date** by clicking **Set end date**. If no end date is set, the discount will continue indefinitely. To run the promotion for a single day, select the same date for both start and end.

![Set Active Dates](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065723/discount-7.jpg)

### **Step 11:** Save the Discount

Click “**Save”** to finalize the discount.

![Save the Discount](https://avadaio_assets.storage.googleapis.com/uploads/2018/10/06065742/Create-Buy-X-Get-Y-Discount-10.webp)

This detailed step-by-step guide ensures that you set up your Buy X Get Y promotion on Shopify efficiently, with the option to enhance it using the Shopify Buy X Get Y appsfor even better results!

## Bottom Line

Using a **Buy X, Get Y** promotion is one of the most effective **discount strategies for Shopify**. It helps increase sales, clear slow-moving inventory, and boost customer engagement. By setting it up correctly, you can create enticing offers encouraging customers to buy more, improving your store’s overall performance.

**Related Posts:**

- [How to Create a Fixed Value or Percentage Discount on Shopify](https://avada.io/blog/how-create-fixed-value-percentage-discount/)
- [How to Create Free Shipping Discount on Shopify](https://avada.io/blog/how-create-free-shipping-discount-shopify/)
- [Ultimate Guides On How To Set Up Shopify Automatic Discounts](https://avada.io/blog/shopify-automatic-discounts/)

## FAQs

### Why is the “Buy X Get Y” discount not working?

If your **Buy X Get Y** discount isn’t working, here are some common issues to review:

- **Software Glitches**: System bugs might disrupt discounts.
- **Unmet Requirements**: Ensure all conditions (like minimum quantity) are met.
- **Coding Issues**: Custom code or third-party apps could interfere.
- **Customer Misunderstanding**: Shoppers may not know how to apply the discount.

To resolve, double-check the discount setup, look for system errors, or contact Shopify support for assistance.

### Can I apply multiple Buy X Get Y discounts?

No, Shopify doesn’t allow multiple **Buy X Get Y** discounts on the same product or order. Only one discount will apply based on priority settings. However, you can combine a **Buy X Get Y** discount with other types (e.g., percentage) if allowed in settings.

### Does Shopify support discount stacking?

The answer is **No**. **Shopify does not support stackable discounts for automatic discounts**, meaning only one automatic discount can apply at checkout. However, stackable discounts are possible for discount codes if configured correctly. Merchants can enable specific discount codes to work together, such as combining a **Buy X Get Y** discount with another code, as long as both discounts are set to allow stacking.

### What’s the difference between percentage-based and Buy X Get Y discounts?

The difference between **percentage-based** and **Buy X Get Y** discounts lies in how they’re applied:

- **Percentage-Based Discount**: Offers a set percentage off the purchase total. For example, a 20% discount applies to the entire order or specific items, reducing the cost based on a fixed rate.
- **Buy X Get Y Discount**: Provides a specific item or set of items for free or at a discount when a certain number of items (X) are purchased. For instance, "Buy 2, Get 1 Free" encourages larger purchases by offering an additional item at no cost.
