How do you set up a Buy X get Y discount on Shopify?
Create a Buy X get Y discount in Shopify admin: set the buys (a quantity or spend), set the gets (Free, a percentage or an amount off), choose automatic or a code, and set uses and dates. Shopify never adds the get item to the cart.
Disclosure: Oxify is our app. You do not need an app for a simple Buy X get Y. Oxify shows BOGO and quantity offers on the product page when the rule has to be visible.
What are the key takeaways?
- Customer buys is the hurdle. Customer gets is the discounted unit.
- Same product BOGO: buys 1, gets 1, cart quantity 2.
- Buy 2 get 1: buys 2, gets 1, cart quantity 3.
- The get item must already be in the cart. If several items qualify, the cheapest one is discounted.
You do not need a separate app for a simple version. You need the discount, one sentence on the product page, and four test carts. Specific recipes: buy one get one, buy 2 get 1, and auto-adding a gift.
Which Buy X get Y fields matter?
Seven fields control the offer: method, customer buys, customer gets, uses per order, eligibility, combinations and active dates.
- Method. Automatic, or a code. Use automatic for a product-page offer. Use a code for a private email.
- Customer buys. A quantity or a spend amount, on the products or collections you name.
- Customer gets. A quantity, then Free, a percentage, or an amount off each item. Choose Free when the unit should cost nothing.
- Maximum uses per order. Stops the deal from repeating inside one cart. On a code, you can also cap total uses and one use per customer.
- Eligibility. All customers, specific customers, a segment, or a market. The page and the eligibility list must match.
- Combinations. Turn them on only after you test the stacked cart. A spend minimum uses full product prices, and an item already cut by another product discount does not count toward that minimum.
- Active dates. They follow the store time zone. Leave the end date empty and the offer runs until you end it.
Bottom line: Set the method, buys, gets, uses, eligibility, combinations and dates on purpose, and keep the product page in line with each one.
What do three common recipes look like?
BOGO on one item means buys 1 and gets 1 set to Free, so the cart must hold a quantity of 2.
| You want | Buys | Gets | Cart check |
|---|---|---|---|
| BOGO, same item | Qty 1 of the item | Qty 1 of the item, set to Free | Quantity 2, one unit free |
| Buy 2 get 1, same item | Qty 2 | Qty 1, set to Free | Quantity 3, one unit free |
| Buy the hero, cloth 50% off | Qty 1 of the hero | Qty 1 of the cloth at 50% off | Both items in the cart |
Spend version: buy $40 from a collection, get 1 mug free. The shopper still has to add the mug, so state the dollar amount in the cart.
Bottom line: Buys and gets are two separate counts, and the cart must hold both before the discount applies.
Which item gets the discount when several qualify?
Shopify discounts the cheapest eligible item in the gets list.
If the gets list includes a $6 sample and a $30 bottle, Shopify discounts the sample. That may be what you want, but it is a bad surprise if you meant the bottle. Keep the gets list to one product, or products at the same price.
Bottom line: Keep the gets list to products you are happy to discount, because the cheapest eligible item gets the discount.
How do you set up and test the offer?
Use five steps: write the offer in one sentence, create the discount, tighten the gets list, explain it on the product page, and run four test carts.
- Write the offer in one sentence. Example: buy 2 of this soap, get 1 of this soap free.
- Create the discount. Set customer buys and customer gets. Choose Free when the get unit should cost nothing. Use Percentage or Amount off each for a partial deal.
- Tighten the gets list. Do not include cheaper products you do not want discounted first.
- Explain it on the product page. State the quantity or spend the shopper must add.
- Run four test carts. Below the hurdle, on the hurdle, with a code, and with the get item unavailable.
Admin does not tell the shopper the rule, so write it next to the buy button in plain words. Match every field to a word in your one-sentence offer. 'Buy 2 soaps, get 1 soap free' means buys quantity 2, gets quantity 1, same product, value set to Free.
Run these four test carts:
- Cart below the hurdle: no discount.
- Cart exactly on the hurdle: the discount matches the promise.
- Cart with a second code, if codes exist.
- Get product out of stock: the page should not promise it.
Three rules to check before launch:
- A minimum purchase amount counts product prices only. Shipping and tax never count.
- If the free product's inventory hits zero, it shows as sold out and the shopper cannot take the deal. Hide the promise the same day.
Oxify shows BOGO and quantity offers on the page, not only at checkout, so use it when the rule must be visible. For two discounts that collide, use the conflict checklist.
Bottom line: Run the four test carts before you promote the offer, and write the rule on the product page in plain words.
Frequently asked questions about Buy X get Y on Shopify
How do I set up a Buy X get Y discount on Shopify?
Open Discounts, choose Buy X get Y, set what the customer must buy, and set what they get at a percent off or free. Choose automatic or a code, then cap uses and dates. The get item has to be in the cart. Test a cart below the hurdle and a cart on it.
What is the difference between buys and gets?
Buys is the hurdle: the quantity or spend required. Gets is the unit that receives the discount. They can be the same product. The cart has to contain both counts. For same-product BOGO, that means quantity 2, not 1.
Will Shopify add the free product for me?
Not with the native discount. It reduces the price of a qualifying item already in the cart. To drop a gift in automatically, you need an app, a custom build, or a theme change that calls the cart API.
Which item is free if several qualify?
Shopify discounts the cheapest eligible item in the gets list. Keep that list to the product you actually want discounted, especially if prices differ.
Can Buy X get Y combine with other discounts?
Only if you turn combinations on, and only after you test the stacked cart. An order discount can still lower the cart below the hurdle, so test it before a sale.


