Buy X get Y discounts
Buy X get Y promotions are a popular way to incentivize new customers to buy your products and to reward loyal customers. You can use them to increase your sales and profits and to sell slow moving inventory.
For example, suppose that your promotion offers customers a free hat when they purchase any T-shirt. With Buy X get Y promotions, you can offer customers one free hat for the whole order, or you can offer them one free hat for each T-shirt included in their order.
You can also create a discount that offers the free hat when the customer spends a specified amount of money.
You can create an automatic discount for buy X get Y promotions.
On this page
Create a Buy X get Y discount code
From your Shopify admin, go to Discounts.
From the Discounts page, click Create discount.
From the Select discount type menu, click Buy X get Y.
Under METHOD, select Discount code.
In the Discount code section, enter a name for the new discount code, for example,
buyonegetonefree
. To generate a random discount code, click Generate code.-
In the Customer buys section, configure the following settings.
- Choose Minimum quantity of items or Minimum purchase amount.
- Set the number of items that the customer must buy or the amount of money that the customer must spend to be eligible for the discount.
- In the Any items from section, choose whether you want to include products or collections as the qualifying items.
- Use the search field or the Browse button to add products or collections to the promotion. If you want to remove a product or collection from the discount, then click X to delete it from the list.
-
In the Customer gets section, configure the following settings.
- Set the quantity of items that the customer must add to their cart to get the discount.
- In the Any items from section, choose whether you want to include products or collections as the discounted items. If the product or collection is the same as the one set in the Customer buys section, then the lower-priced item that the customer chooses is the item that the customer gets at a discount.
- Use the search field or the Browse button to add products or collections. If you want to remove a product or collection, then click X to delete it from the list.
- In the AT A DISCOUNTED VALUE section, choose the discounted value that customers receive when they buy the set number of items. If you want to offer a percentage discount, then select Percentage and enter a rate. If you want to offer items for free, then select Free.
- To set the maximum number of uses per order, check Set the maximum number of uses per order and then enter the number of times that this promotion can be applied to an order.
-
In the Customer eligibility section, select who this discount applies to: everyone, specific customer segments, or specific customers.
- Use the search field to choose the individuals or groups that you want to receive the discount. Customer listings show the email used to register for your store. If no email was provided, then the listing shows the customer's phone number.
- To remove an individual customer or group of customers from eligibility for a discount, click the X next to the customer's or group's name.
-
To limit discount usage, check one of the options in the Maximum discount uses section:
- Limit number of times this discount can be used in total lets you set a total number of times that a discount can be used. For example, setting a limit of 200 allows the discount code to be used 200 times across your customer base. If you choose this setting, then customers can use the discount multiple times.
- Limit to one per customer tracks a customer's email address or phone number to limit the discount to one use per customer. This only applies to fixed value discounts.
-
In the Active dates section, configure the following settings.
- Use the calendar to set the start date for the discount.
- If you want to set an end date for the discount, then click Set end date and use the calendar to choose when the discount will end.
If you don't choose an end date for your discount, then it doesn't expire. If you want the discount to be valid for only one day, then select the same calendar day for both the start date and the end date.
Click Save.
Your new discount will appear in the Discounts tab in your Shopify admin. To distribute this discount, you can send the code to your customers by email, or display it on your online store.
Your customers need to enter the code during checkout to receive the discount. They also need to add all applicable products to their cart to receive the discount. The discounted or free products aren't added to the cart automatically.
- From the Shopify app, go to Store > Discounts.
- From the Discounts page, tap the
+
button. - From the Select discount type menu, tap Buy X get Y.
- Under Method, ensure Discount code is selected. It is the default option.
- Tap Code and enter a name for the new discount code, for example,
buyonegetonefree
. To generate a random discount code, tap Generate code. - In the Customer buys section, configure the following settings.
- Tap Minimum quantity of items or Minimum purchase amount.
- Set the number of items that the customer must buy or the amount of money that the customer must spend to be eligible for the discount.
- In the Any items from section, choose whether you want to include products or collections as the qualifying items.
- Tap Add, and then select the products or collections to add to the promotion. If you want to remove a product or collection, then deselect it to delete it from the list.
- In the Customer gets section, configure the following settings.
- Set the quantity of items that a customer must add to their cart to get the discount.
- In the Any items from section, choose whether you want to include products or collections as the discounted items.
- Tap Add and select the products or collections that the customer must add to their cart to get the discount. If you want to remove a product or collection, deselect it to delete it from the list.
- In the At discounted value section, tap Percentage if you want to offer a percentage discount or tap Free if you want to offer items for free.
- If you're offering a percentage discount, then enter a value.
- Tap Customer eligibility and select who this discount applies to: everyone, specific customer segments, or specific customers.
- Tap Specific customer segments and then tap Add to add the customers or groups of customers that you want to apply the discount to, and then tap Done to save your changes.
- Tap Specific customers and then tap Add to add the specific customers that you want to apply the discount to, and then tap Done.
- Customer listings show the email used to register for your store. If no email was provided, then the listing shows the customer's phone number.
- To remove an individual customer or group of customers from eligibility for a discount, tap Edit and deselect the customer or group of customers.
- Discount usage is unlimited by default. To add a limit on uses, tap Uses per order and enable Set a maximum number of uses per order. Then add a number under Quantity.
- To set a maximum discount use limit, tap Maximum discount uses and toggle the following options:
- Limit number of times this discount can be used in total lets you set a total number of times that a discount can be used. For example, setting a limit of 200 allows the discount code to be used 200 times across your customer base. If you choose this setting, then customers can use the discount multiple times.
- Limit to one per customer tracks a customer's email address or phone number to limit the discount to one use per customer. This only applies to fixed value discounts.
- Tap Active dates to set the start date for the discount. If you want to set an end date for the discount, then enable Set end date and use the end date calendar to choose when the discount will end.
- If you don't choose an end date for your discount, then it doesn't expire. If you want the discount to be valid for only one day, then select the same calendar day for both the start date and the end date.
- Tap Save to create the discount.
Your new discount will appear in the Discounts view under Store in the Shopify app. To distribute this discount, you can send the code to your customers by email, or display it on your online store.
Your customers need to enter the code during checkout to receive the discount. They also need to add all applicable products to their cart to receive the discount. The discounted or free products aren't added to the cart automatically.
- From the Shopify app, go to Store > Discounts.
- From the Discounts page, tap the
+
button. - From the Select discount type menu, tap Buy X get Y.
- Under Method, ensure Discount code is selected. It is the default option.
- Tap Code to enter a name for the new discount code, for example,
buyonegetonefree
. - In the Customer buys section, configure the following settings.
- Tap Minimum quantity of items or Minimum purchase amount.
- Set the number of items that the customer must buy or the amount of money that the customer must spend to be eligible for the discount.
- In the Any items from section, choose whether you want to include products or collections as the qualifying items.
- Tap the
+
button, and then select the products or collections to add to the promotion. If you want to remove a product or collection, then deselect it to delete it from the list.
- In the Customer gets section, configure the following settings.
- Set the quantity of items that a customer must add to their cart to get the discount.
- In the Any items from section, choose whether you want to include products or collections as the discounted items.
- Tap the
+
button and select the products or collections that the customer must add to their cart to get the discount. If you want to remove a product or collection, deselect it to delete it from the list. - In the At discounted value section, tap Percentage if you want to offer a percentage discount or tap Free if you want to offer items for free.
- If you're offering a percentage discount, then enter a value.
- Discount usage is unlimited by default. To add a limit on uses, tap Uses per order and enable Set a maximum number of uses per order. Then add a number under Quantity.
- Tap Customer eligibility and select who this discount applies to: everyone, specific customer segments, or specific customers.
- Tap
+
and select the customers or groups of customers that you want to apply the discount to, and then tap the check mark ✔ to save your changes. - Customer listings show the email used to register for your store. If no email was provided, then the listing shows the customer's phone number.
- To remove an individual customer or group of customers from eligibility for a discount, tap the pencil icon and deselect the customer or group of customers.
- Tap
- Discount usage is unlimited by default. If you want to limit discount usage, then tap Maximum discount uses and enable the usage limit options that you want to apply to your discount:
- Limit number of times this discount can be used in total lets you set a total number of times that a discount can be used. For example, setting a limit of 200 allows the discount code to be used 200 times across your customer base. If you choose this setting, then customers can use the discount multiple times.
- Limit to one per customer tracks a customer's email address or phone number to limit the discount to one use per customer. This only applies to fixed value discounts.
- Tap Active dates to set the start date for the discount. If you want to set an end date for the discount, then enable Set end date and use the end date calendar to choose when the discount will end.
- If you don't choose an end date for your discount, then it doesn't expire. If you want the discount to be valid for only one day, then select the same calendar day for both the start date and the end date.
- Tap the check mark ✔.
Your new discount will appear in the Discounts view under Store in the Shopify app. To distribute this discount, you can send the code to your customers by email, or display it on your online store.
Your customers need to enter the code during checkout to receive the discount. They also need to add all applicable products to their cart to receive the discount. The discounted or free products aren't added to the cart automatically.
Create an automatic Buy X get Y discount
There are two variations of Buy X get Y discounts. One requires the customer to buy a specified quantity of products to get the discount and the other requires them to spend a specified amount of money to get the discount.
The discount can be either free products or a percentage off of the price of products. If you are offering free products, then it is important that you have adequate inventory. If the inventory of free products drops to zero, then the products are shown as being sold out and customers can't take advantage of the discount.
From your Shopify admin, go to Discounts.
From the Discounts page, click Create discount.
From the Select discount type menu, click Buy X get Y.
Under METHOD, select Automatic discount.
In the Title section, enter a name for the automatic discount (for example,
buyonegetonefree
).Optional: To offer this discount for your retail locations, check Also offer on Point of Sale (POS Pro locations only). Automatic discounts only apply to retail locations with a POS Pro subscription. If you have some locations with a POS Lite subscription, then the automatic discounts will not appear in their checkout.
-
In the Customer buys section, configure the following settings.
- Choose Minimum quantity of items or Minimum purchase amount.
- Set the number of items that the customer must buy or the amount of money that the customer must spend to be eligible for the discount.
- In the Any items from section, choose whether you want to include products or collections as the qualifying items.
- Use the search field or the Browse button to add products or collections to the promotion. If you want to remove a product or collection from the discount, then click X to delete it from the list.
-
In the Customer gets section, configure the following settings.
- Set the quantity of items that the customer must add to their cart to get the discount.
- In the Any items from section, choose whether you want to include products or collections as the discounted items. If the product or collection is the same as the one set in the Customer buys section, then the lower-priced item that the customer chooses is the item that the customer gets at a discount.
- Use the search field or the Browse button to add products or collections. If you want to remove a product or collection, then click X to delete it from the list.
- In the At a discounted value section, choose the discounted value that customers receive when they buy the set number of items. If you want to offer a percentage discount, then select Percentage and enter a rate. If you want to offer items for free, then select Free.
- Optional: Check Set the maximum number of uses per order and then enter the maximum number of times that this promotion can be applied to an order.
-
In the Active dates section, configure the following settings.
- Use the calendar to set the start date for the discount.
- If you want to set an end date for the discount, then click Set end date and use the calendar to choose when the discount will end.
If you don't choose an end date for your discount, then it will have no expiry. If you want the discount to be valid for only one day, then select the same calendar day for both the start date and the end date.
Click Save.
Your new discount appears on the Discounts page.
Your customers need to add all applicable products to their cart to receive the discount. The discounted or free products aren't added to the cart automatically.
- From the Shopify app, go to Store > Discounts.
- From the Discounts page, tap the
+
button. - From the Select discount type menu, tap Buy X get Y.
- Tap Method, and select Automatic.
- In the Title section, enter a name for the automatic discount (for example,
buyonegetonefree
). - In the Customer buys section, configure the following settings.
- Tap Minimum quantity of items or Minimum purchase amount.
- Set the number of items that the customer must buy or the amount of money that the customer must spend to be eligible for the discount.
- In the Any items from section, choose whether you want to include products or collections as the qualifying items.
- Tap Add and select the products or collections to add to the promotion. If you want to remove a product or collection, deselect it to delete it from the list.
- Tap Done.
- In the Customer gets section, configure the following settings.
- Set the quantity of items that a customer must add to their cart to get the discount.
- In the Any items from section, choose whether you want to include products or collections as the discounted items.
- Tap Add and select the products or collections that the customer must add to their cart to get the discount. If you want to remove a product or collection, deselect it to delete it from the list.
- In the At discounted value section, tap Percentage if you want to offer a percentage discount or tap Free if you want to offer items for free.
- If you are offering a percentage discount, then enter a value.
- Tap Back.
- Optional: Tap Uses per order and then enter the maximum number of times that this promotion can be applied to an order.
-
Tap Active dates to set the start date for the discount. If you want to set an end date for the discount, then enable Set end date and use the end date calendar to choose when the discount will end.
If you don't choose an end date for your discount, then it will have no expiry. If you want the discount to be valid for only one day, then select the same calendar day for both the start date and the end date.
Tap Save.
Your new discount appears on the Discounts page.
Your customers need to add all applicable products to their cart to receive the discount. The discounted or free products aren't added to the cart automatically.
- From the Shopify app, go to Store > Discounts.
- From the Discounts page, tap the
+
button. - From the Select discount type menu, tap Buy X get Y.
- Tap Method, and select Automatic.
- In the Title section, enter a name for the automatic discount (for example,
buyonegetonefree
). - In the Customer buys section, configure the following settings.
- Tap Minimum quantity of items or Minimum purchase amount.
- Set the number of items that the customer must buy or the amount of money that the customer must spend to be eligible for the discount.
- In the Any items from section, choose whether you want to include products or collections as the qualifying items.
- Tap the
+
button and select the products or collections to add to the promotion. If you want to remove a product or collection, deselect it to delete it from the list.
- In the Customer gets section, configure the following settings.
- Set the quantity of items that a customer must add to their cart to get the discount.
- In the Any items from section, choose whether you want to include products or collections as the discounted items.
- Tap the
+
button and select the products or collections that the customer must add to their cart to get the discount. If you want to remove a product or collection, deselect it to delete it from the list. - In the At discounted value section, tap Percentage if you want to offer a percentage discount or tap Free if you want to offer items for free.
- If you are offering a percentage discount, then enter a value.
- Optional: Tap Uses per order and then enter the maximum number of times that this promotion can be applied to an order.
-
Tap Active dates to set the start date for the discount. If you want to set an end date for the discount, then enable Set end date and use the end date calendar to choose when the discount will end.
If you don't choose an end date for your discount, then it will have no expiry. If you want the discount to be valid for only one day, then select the same calendar day for both the start date and the end date.
Tap the check mark ✔.
Your new discount appears on the Discounts page.
Your customers need to add all applicable products to their cart to receive the discount. The discounted or free products aren't added to the cart automatically.
Make a Buy X get Y discount combinable
When you create a Buy X get Y discount, you can make it combinable with other discounts that are also set up to combine with that discount class.
You can combine:
- order discounts with free shipping discounts.
- product discounts (buy X get Y, amount off discounts) with free shipping discounts.
- product discounts with other product discounts.
Refer to combining discounts to learn more.
Steps:
- From your Shopify admin, click Discounts.
- Click Create discount.
- Select the type of discount you want to create and fill in the details.
- Under Combinations, check the discount classes that you want your new discount to combine with.
- Do one of the following:
- If the checked discount combination class has active discounts, then you can click the displayed number to see a list of active discounts for this combination.
- If there are no active discounts set up to be combined with the current one, then you need to set up discounts to combine later.
- Click Save.
Steps:
- From your Shopify admin, click Discounts.
- From the Discounts page, tap the
+
button. - Select the type of discount you want to create and fill in the details.
- Under Combines with, toggle the discount classes that you want your new discount to combine with.
- Do one of the following:
- If the checked discount combination class has active discounts, then you can click the displayed number to see a list of active discounts for this combination.
- If there are no active discounts set up to be combined with the current one, then you need to set up discounts to combine later.
- Tap Save.
Steps:
- From your Shopify admin, click Discounts.
- From the Discounts page, tap the
+
button. - Select the type of discount you want to create and fill in the details.
- Under Combines with, toggle the discount classes that you want your new discount to combine with.
- Do one of the following:
- If the checked discount combination class has active discounts, then you can click the displayed number to see a list of active discounts for this combination.
- If there are no active discounts set up to be combined with the current one, then you need to set up discounts to combine later.
- Tap the check mark ✔.
If you're setting up a discount to be combinable for the first time, then you need to set up other discounts to be eligible to combine with it.
For example, if you set up a discount code for 25% off a collection of products, and you want it to combine with a free shipping discount code, then you need to go into each of the discounts and ensure they are both set up to combine with each other's discount class. The product discount needs to combine with free shipping discounts, and the free shipping discount code needs to combine with product discounts.