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 want | Tool |
|---|---|
| a discount on a whole category or brand, visible in the product list, without a code | catalog price rule |
| buy one get one free, every third item free | cart price rule, Buy X get Y free (discount amount is Y) |
| a discount code that does not apply to items already reduced | cart 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 amount | cart price rule with the Add a Gift action (our module) |
Buy one get one free (Buy X get Y)
Marketing › Promotions › Cart Price Rules
Add a new rule and, in the Rule Information section, fill in the name, website and customer groups as for any rule.
In the Actions section, under Apply, choose Buy X get Y free (discount amount is Y).
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).

- Apply - Buy X get Y free (discount amount is Y).
- Discount Amount - how many items are free (Y).
- Discount Qty Step (Buy X) - how many items the customer pays for (X).
Click Save and check the promotion in the cart.
| Promotion | Discount Amount (Y) | Discount Qty Step (X) |
|---|---|---|
| buy one get one free | 1 | 1 |
| buy two get one free (every third item free) | 1 | 2 |
| buy 3, get 2 free | 2 | 3 |
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:
Put all reduced products into one category, for example Sale (it can be hidden from the menu, see Categories and the main menu).
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.
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.
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:
In the Rule Information section, enter a number in Priority. A lower number means the rule is applied earlier (0 or 1 comes first).

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

- Discard subsequent rules - when on, stops all rules that come after this one.
- Cart item conditions - which items the discount covers (for example excluding the Sale category).
| Example | Setting |
|---|---|
| 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 discounts | shipping 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:
Rule 10 % from 6 items: in Conditions add Total Items Quantity equals or greater than 6, discount 10 %, Priority 1, Discard subsequent rules on.
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.
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.
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.
In a new rule, in the Conditions section, add Subtotal (Excl. Tax) equals or greater than and the amount, for example 80.
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.

- Apply - Add a Gift.
- Discount Amount - here it means the number of gifts.
- Gift SKU - the SKU of the product added free of charge.
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.
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.


