Buy X get Y
Give shoppers an item free, or cheaper, when they buy a set number of items, for example buy 2 mugs and get a third free.
Tanqory offers four discount types: Amount off products, Buy X get Y, Amount off order and Free shipping. In this guide, you create BUY2GET1: a shopper who buys 2 mugs gets a third mug free, for example for a weekend promotion. You then test the code at checkout to confirm one mug is free.
- Open Discounts in your store: choose your store, then Discounts.
On this page
Before you start
You need to be:
- The store owner.
- Staff whose role has the Discounts permission See, add and delete, given by the owner in the store's settings for staff.
You also need:
- The products the shopper buys and the products they get must already exist in the store. They can be the same product, as here.
Create the discount code
In the store dashboard's menu, choose Discounts, then Create discount.


1. Create discount, on the Discounts page. In Select discount type, choose Buy X get Y.


2. Choose Buy X get Y. Under Method, keep Discount code and type the code, for example
BUY2GET1.Under Customer buys, keep Minimum quantity of items and type
2in Quantity.In Any items from, keep Specific products, select Browse, tick the product and select Done.


3 to 5. The code and what the shopper must buy. 9 is the Save button you use at the end. Under Customer gets, type
1in Quantity.Choose the product the same way with Browse.
Under At a reduced price, choose Free.


6 to 8. What the shopper gets, and that it is free. Select Save.
Check the saved discount
The discount opens with the status Active and a green box saying the code is ready with Copy a share link. The summary reads "Buy 2 items, get 1 item free".


Test the code at checkout
The shopper puts 3 mugs in the cart and types the code at checkout. The discount line takes the price of one mug off: 1,500.00 THB of mugs got a discount of 500.00 THB.

Fields and buttons
| On the page | What it does |
|---|---|
| Customer buys | What the cart must hold first: Minimum quantity of items or Minimum purchase amount, from the products or collections you choose. |
| Customer gets | How many items the shopper gets, and from which products or collections. The shopper's cart needs the quantity set below. |
| At a reduced price | Percentage, Amount off each or Free. |
| Cap how many times it applies in one order | Limits how many times the reward applies in one order. |
| Combinations | Which other discounts may apply in the same cart. By default none. |
The other fields are the same as in Create a discount code.
Troubleshoot common problems
"This code doesn’t apply to the items in your cart." The cart does not hold enough items yet. With BUY2GET1, a cart of 2 mugs gave this message; the cart needs the 2 bought items plus the 1 free item, so 3 mugs. (Seen on Dev.)
Free shipping disappeared when the code was applied. The test store also had an automatic free-shipping discount from 1,000 THB. With BUY2GET1 applied to 3 mugs, shipping was charged (370.00 THB), because the code does not combine with other discounts by default. To let both apply, change Combinations on both discounts. (The free shipping part was seen on Dev; changing the combinations was not tried for this guide.)
Limits. Staff need the Discounts permission. The discount is for the online store's checkout (the summary says "For Online Store").