TanqoryDocs

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.

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

  1. In the store dashboard's menu, choose Discounts, then Create discount.

    The Discounts page with the Create discount button marked 1.The Discounts page with the Create discount button marked 1.
    1. Create discount, on the Discounts page.
  2. In Select discount type, choose Buy X get Y.

    The Select discount type window; Buy X get Y is marked 2.The Select discount type window; Buy X get Y is marked 2.
    2. Choose Buy X get Y.
  3. Under Method, keep Discount code and type the code, for example BUY2GET1.

  4. Under Customer buys, keep Minimum quantity of items and type 2 in Quantity.

  5. In Any items from, keep Specific products, select Browse, tick the product and select Done.

    The form: the code BUY2GET1 (3), Customer buys with quantity 2 (4), the Browse button (5) with Docs Sample Mug chosen under it, and Save (9).The form: the code BUY2GET1 (3), Customer buys with quantity 2 (4), the Browse button (5) with Docs Sample Mug chosen under it, and Save (9).
    3 to 5. The code and what the shopper must buy. 9 is the Save button you use at the end.
  6. Under Customer gets, type 1 in Quantity.

  7. Choose the product the same way with Browse.

  8. Under At a reduced price, choose Free.

    Customer gets: quantity 1 (6), the Browse button (7) with Docs Sample Mug chosen, and Free chosen under At a reduced price (8).Customer gets: quantity 1 (6), the Browse button (7) with Docs Sample Mug chosen, and Free chosen under At a reduced price (8).
    6 to 8. What the shopper gets, and that it is free.
  9. 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".

The saved discount BUY2GET1 with the Active status and the green box saying it is ready.The saved discount BUY2GET1 with the Active status and the green box saying it is ready.
The discount is saved and active from now.

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.

Order summary: 3 Docs Sample Mug, 1,500.00 THB, BUY2GET1 applied, discount minus 500.00 THB, shipping 370.00 THB, total 1,370.00 THB.
3 mugs with BUY2GET1: one mug free.

Fields and buttons

On the pageWhat it does
Customer buysWhat the cart must hold first: Minimum quantity of items or Minimum purchase amount, from the products or collections you choose.
Customer getsHow many items the shopper gets, and from which products or collections. The shopper's cart needs the quantity set below.
At a reduced pricePercentage, Amount off each or Free.
Cap how many times it applies in one orderLimits how many times the reward applies in one order.
CombinationsWhich 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").

Built from commit 0cac88ece6de · API version 2026-10