How to use "Buy X Get Y - Percent Discount: Buy X get Y Free" action

The guidance below shows how to create different Magento 2 promotional products using the ‘Percent Discount: Buy X get Y Free’ action of Special Promotions extension.

Thanks to this action you can create promotions like ‘Buy 3 phones and get 2 memory cards with 30% discount’. 

Let’s observe the steps of the action configuration.

Please open Admin Panel > Promotions > Shopping Cart Price Rules (click ‘Add New Rule’ button) > Actions.


Step 1. Choose ‘Percent Discount: Buy X get Y Free’ for the ‘Apply’ field in Magento 2.

Step 2. Use ‘Number of Y Products’ setting to indicate the number of ‘Y’ items which will receive a discount.

Step 3. Use ‘Number of X Products’ setting to indicate the number of ‘X’ items. If you specify 1 like here, it means that a customer will have to buy 1 ‘X’ items to get 20% discount for one ‘Y’ item.

Step 4. Use conditions section of the ‘Actions’ tab to specify ‘X’ items, by which the discount is triggered. In this case we indicated that ‘X’ items should be from category with ID 18 (Eyeglasses).

Step 5. Use ‘Promo Categories’ field to indicate to which categories the discounted items (Y items) should belong.

Step 6. Also you can specify SKUs of the individual products to which the discount should apply (these are Y items as well). If you specify both categories and SKUs like here, the discount will apply to both individual items and to products from the categories.

Please be aware that ‘X’ items and ‘Y’ items can’t be the same product. Otherwise, the rule 'buy X get Y free' will not be working on Magento 2 frontend.


And here's the result for the rule above



According to the statistics, you may find helpfull the following question about magento shopping cart rules.

Note: To set up the Magento 2 promotions, use the 'Buy X get Y Free' option in Special Promotions extension.

See more details on Special Promotions page

User Guide

See more details on Special Promotions page

User Guide

How can we help you?

Didn’t you find the answer to your question? We are always happy to help you out.