Shopify DiscountsLast reviewed

How to Set Up a Buy X Get Y (BOGO) Discount in Shopify

Who this is for

Merchandisers and promo managers running BOGO, gift-with-purchase, or 'buy 2 get 1' offers on Shopify.

Shopify's Buy X Get Y discount reduces the price of 'Y' items when the cart contains the required 'X' items. The most common surprise: the Y item generally isn't added to the cart for the customer — they must add it themselves before the discount applies. Set what the customer buys (quantity or minimum amount from specific products or collections), what they get (items and quantity), the discount on those items (percentage, amount off, or free), and a maximum number of uses per order so 'buy 1 get 1' doesn't repeat further than you intended.

When to use this

  • You're launching a BOGO or gift-with-purchase promotion.
  • Customers complain the free item didn't appear.
  • A BXGY offer discounted more items than planned.
  • The 'get' item is cheaper or more expensive than the 'buy' item and you're unsure which gets discounted.

Step-by-step workflow

  1. 1

    Define buy and get products explicitly

    Pick specific products or collections for both sides. If both sides use the same collection, mixed carts can discount items you expected customers to pay for.

  2. 2

    Set the get-side discount and quantity

    Choose free, a percentage, or an amount off for the Y items, and how many Y items qualify.

  3. 3

    Set maximum uses per order

    Without it, a customer buying 6 X items may receive multiple free Y items. Decide whether that's intended.

  4. 4

    Tell customers to add the Y item

    Update product pages, banners, and the email to say 'add both to cart'. This prevents most BXGY tickets.

  5. 5

    Test mixed and repeated carts

    Test exact qualifying quantity, double quantity, X without Y, Y without X, and X + Y + an unrelated product.

Frequently asked questions

Why isn't my Shopify Buy X Get Y free item added to cart?

Shopify's Buy X Get Y applies a discount to Y items in the cart; it doesn't generally add them for the customer. The customer needs to add the Y item, or you need an app or custom logic that adds it.

Can Buy X Get Y be an automatic discount?

Yes. Buy X Get Y can be created as a code or as an automatic discount. The same rules about adding the Y item apply.

Can I limit BOGO to once per order?

Yes. Set a maximum number of uses per order on the discount.

Related resources and tools

Browse all Shopify answers →