Advanced promotions: buy one get one, gifts and exclusions

Buy X get Y, a category discount without a code, a coupon that does not apply to reduced items, quantity tiers and a free gift above a set amount.

⏱ 10 minBeginnerUpdated 8 Oct 2026

The basics of cart price rules are covered in Cart discounts. This article shows how to use the same tool for the promotions our customers ask about most often.

Before you start

  • an exact description of the promotion: what the customer buys and what they get,
  • whether it applies automatically or with a coupon code,
  • whether it may be combined with other promotions that are already running.

Which tool for which promotion

I wantTool
a discount on a whole category or brand, visible in the product list, without a codecatalog price rule
buy one get one free, every third item freecart price rule, Buy X get Y free (discount amount is Y)
a discount code that does not apply to items already reducedcart price rule with a condition in the Actions section
a bigger discount for a bigger quantity (quantity tiers)several cart price rules with a quantity condition and a set priority
a free gift with purchases above a set amountcart price rule with the Add a Gift action (our module)

Buy one get one free (Buy X get Y)

Marketing › Promotions › Cart Price Rules

  1. Add a new rule and, in the Rule Information section, fill in the name, website and customer groups as for any rule.

  2. In the Actions section, under Apply, choose Buy X get Y free (discount amount is Y).

  3. In Discount Amount enter how many items are free (Y), and in Discount Qty Step (Buy X) how many items the customer has to buy (X).

    The Actions section with Buy X get Y free selected
    1. Apply - Buy X get Y free (discount amount is Y).
    2. Discount Amount - how many items are free (Y).
    3. Discount Qty Step (Buy X) - how many items the customer pays for (X).
  4. Click Save and check the promotion in the cart.

PromotionDiscount Amount (Y)Discount Qty Step (X)
buy one get one free11
buy two get one free (every third item free)12
buy 3, get 2 free23
The promotion is calculated for each product in the cart separately: the customer gets the free item once the cart holds enough units of the same product (two units for buy one get one free). Two different products are not added together. If it should apply only to selected products, add a condition in the Actions section under Apply the rule only to cart items matching the following conditions (leave blank for all items). (for example Category).
To limit how many items at most can be free, enter a number in Maximum Qty Discount is Applied To. 0 means no limit.

Category discount without a code

For a promotion that is already visible in the product list (crossed-out price), use a catalog price rule with a Category condition. If the discount should only appear in the cart, create a cart price rule with Coupon = No Coupon and add a condition in the Actions section: Category is one of, then choose the category.

Coupon that does not apply to reduced items

The shop cannot tell items with a special price apart from the rest by itself. So you tell the rule which products it should not include:

  1. Put all reduced products into one category, for example Sale (it can be hidden from the menu, see Categories and the main menu).

  2. In the coupon rule, expand the Actions section and, under Apply the rule only to cart items matching the following conditions (leave blank for all items)., click the green + sign.

  3. Choose Category, click the word is and choose is not one of, then click the three dots and choose the Sale category.

The coupon discount is now only applied to products outside that category. The other products in the cart keep their special price.

A condition in the Actions section says which items get the discount. A condition in the Conditions section says when the rule applies at all (for example above 50 EUR). To exclude products, use the Actions section.
Instead of a category, you can also exclude individual products: the condition SKU is not one of with a list of SKUs separated by commas.

Priority and Discard subsequent rules

When several rules run at the same time, the shop applies all that are valid and adds the discounts together. Two settings prevent this:

  1. In the Rule Information section, enter a number in Priority. A lower number means the rule is applied earlier (0 or 1 comes first).

    The Priority field in the Rule Information section
    Priority - a lower number is applied earlier.
  2. In the Actions section, switch on Discard subsequent rules. After this rule, the shop ignores every rule with a higher priority number.

    The Discard subsequent rules switch and the cart item conditions in the Actions section
    1. Discard subsequent rules - when on, stops all rules that come after this one.
    2. Cart item conditions - which items the discount covers (for example excluding the Sale category).
ExampleSetting
a newsletter code (10 %) must not be combined with the seasonal sale (20 %)seasonal sale: Priority 1, Discard subsequent rules on; code: Priority 2
free shipping should always apply, even with other discountsshipping rule: Priority 0, Discard subsequent rules off

Quantity tiers

A discount that grows with quantity (for example 5 % from 3 items, 10 % from 6 items) is built from several rules:

  1. Rule 10 % from 6 items: in Conditions add Total Items Quantity equals or greater than 6, discount 10 %, Priority 1, Discard subsequent rules on.

  2. Rule 5 % from 3 items: condition 3, discount 5 %, Priority 2.

With 7 items the first rule applies and stops the second. With 4 items the first rule does not apply, so the second one takes over.

For a quantity discount on a single product (for example 10 of the same product at a lower price), it is simpler to use the Customer Group Price field in the product's Advanced Pricing window.

Free gift above a set amount

Magento cannot add a free product to the cart on its own. Our module makes this possible: in the Actions section, Apply gets two extra options, Add a Gift and Add a Gift (For each cart item). If you do not see them in your shop, write to us and we will install the module.

  1. First set up the gift as an ordinary simple product with a SKU, image and stock. You can set its visibility to Not Visible Individually so customers cannot find it in the shop.

  2. In a new rule, in the Conditions section, add Subtotal (Excl. Tax) equals or greater than and the amount, for example 80.

  3. In the Actions section, under Apply, choose Add a Gift, in Discount Amount enter the number of gifts (usually 1) and in Gift SKU the SKU of the gift product.

    The Actions section with Add a Gift selected and the Gift SKU field
    1. Apply - Add a Gift.
    2. Discount Amount - here it means the number of gifts.
    3. Gift SKU - the SKU of the product added free of charge.
  4. Save and test: once the cart goes over the amount, the gift appears in it at a price of 0. If the customer removes items and the total drops below the threshold, the gift disappears automatically.

The Add a Gift (For each cart item) option adds a gift to every item that matches the condition in the Actions section (for example a sample with every perfume). To give several gifts at once, enter their SKUs separated by commas.

Common problems

With buy one get one free, the customer gets no free item

The promotion counts units of the same product. The customer needs two units of the same product in the cart; two different products do not count together. If the promotion should apply only to selected products, add the condition in the Actions section, not in the Conditions section.

Two discounts still add up

Check the Priority numbers: the rule with Discard subsequent rules must have the lower number. Two rules with the same priority are both applied.

The gift is not added

Check that the gift product is enabled, in stock and assigned to the website, and that the SKU in Gift SKU matches exactly. The gift must be a simple product without required options.

Was this article helpful?

Related

We use cookies for the proper functioning of the site, visit analytics and showing ads tailored to your interests. Read more in our privacy policy. By clicking "Accept all" you agree to the use of all cookies.