Magento 2 Buy X Get Y: Bonus Product Automatically in the Cart
SKU: BUYXGETY1
- trigger: product, category or attribute with minimum quantity
- Y free, discounted by a percentage or at a fixed price
- add automatically or accept with one click
- quantity cap, total cap, period and reporting
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 Buy X Get Y: buy this, get that free or discounted
With Magento 2 Buy X Get Y from Mironsoft you tie the purchase of a trigger product to a gift or discounted product: “Buy a camera, get the bag 50% off” or “Buy two shirts, the pair of socks is free”. The module adds the Y product to the cart automatically or offers it there with one click. Rules apply per category, period and customer group. Magento 2 Buy X Get Y runs on Alpine.js in the Hyvä theme without an extra library.
Trigger X
Products, categories or attribute values that unlock the offer, with a minimum quantity.
Reward Y
Free, percentage off or fixed price for the Y product, with a quantity cap.
Automatic or one click
Y is added immediately or shown as an offer in the cart.
Period
Start and end per rule, ideal for campaign weeks and product launches.
Customer groups
Release promotions only for new customers, trade customers or newsletter subscribers.
Reporting
Counters show how often a rule applied and how much merchandise value was given away.
Why merchants use Magento 2 Buy X Get Y
An accessory for the main product, a sample with a reorder or a slow seller as a bonus: such pairings raise the cart value and clear the warehouse. In standard Magento the implementation stays tedious, because cart rules know discounts but not the targeted adding of a second product.
With Magento 2 Buy X Get Y the idea becomes a rule the customer understands in the cart. They see what they receive, what it costs and what happens if they reduce the trigger quantity again. You keep the overview because every rule has a quantity cap, a period and a priority.
Set up Magento 2 Buy X Get Y: trigger and minimum quantity
In the admin you define which products, categories or attribute values trigger the offer and how many items are required. You can join several triggers with “or”, for example all cameras of one brand. Exclusions take single products out again, such as discontinued items. The rule applies per store view so that promotions may differ between markets.
- Product, category or attribute as trigger
- Minimum quantity and exclusion list
- Scope per store view and customer group
The Y product: free, discounted or at a fixed price
For the Y product you choose whether it is free, discounted by a percentage or sold at a fixed price. A quantity cap limits the bonus per order. If the Y product is out of stock, the module skips the rule and makes no empty promise. For products with required options the module offers a selection instead of guessing a variant.
- Free, percentage or fixed price for Y
- Quantity cap per order
- Unavailable Y products are skipped
In the cart: automatic bonus and a hint about the promotion
When the customer reaches the trigger quantity, the module adds the Y product to the cart or shows a hint with a button. If one item is missing, a progress text such as “1 more item to get the bonus” appears. If the customer reduces the quantity, the module removes the bonus again and explains why. The interface uses Alpine.js and Tailwind of the Hyvä theme.
- Mode: add automatically or accept with a click
- Progress text until the bonus
- The bonus disappears when the condition no longer applies
Margin, stock and combinations under control
Bonuses cost margin and stock. That is why Magento 2 Buy X Get Y lets you cap every rule to a total quantity: when 200 bonuses are given out, the promotion ends. You decide whether the bonus may be combined with other promotions and can pause, copy and prioritise rules. The report shows usage and merchandise value given away.
- Total cap of the promotion and pause by switch
- Combination with other promotions configurable
- Report with usage and merchandise value
Where Magento 2 Buy X Get Y enlarges the cart
Four situations in which Magento 2 Buy X Get Y convinces.
Accessories for the main product
With the cordless drill comes the bit set at a discount. The customer buys the matching accessory right away.
Rewarding reorders
Anyone who takes two packs of coffee gets the sample pack of a new blend for free.
Moving slow sellers
An item with high stock becomes the bonus and leaves the warehouse without lowering the list price.
Product launch
At the start of a new product the accessory is free for one week, then the rule ends automatically.
Magento 2 Buy X Get Y: with and without the module compared
The difference to cart rules and manual bonuses.
| Topic | Without module | With Mironsoft Buy X Get Y |
|---|---|---|
| Bonus | Manually in packing or via coupon | Automatic in the cart with a rule |
| Trigger | Only cart total or coupon code | Product, category or attribute with minimum quantity |
| Customer communication | Customer does not learn about the bonus | Hint, progress text and own line |
| Limits | No cap on bonuses | Quantity cap per order and total cap |
| Maintenance | Switch promotions on and off by hand | Period, pausing and reporting |
How we set up Magento 2 Buy X Get Y for you
The process after you place the order.
Briefing
You tell us triggers, bonuses and target groups. Together we clarify whether Y is free, discounted or sold at a fixed price.
Installation
We install the module, enable Magento 2 Buy X Get Y for your store views and create the first rule. Afterwards we test it with your product types, including configurable products.
Hints
We write the texts for cart and product page per language.
Testing
We check quantity changes, unavailable Y products, the total cap and the combination with your existing promotions.
Handover
Your team gets an introduction to rules, limits and reporting.
Delimitation from Free Gift and Bundle Deals
The Free Gift module from Mironsoft gives away a product once the cart reaches a value. Bundle Deals reward the quantity of the same item, such as “3 for 2”. Magento 2 Buy X Get Y, in contrast, pairs two different products or product groups: buying X triggers the offer for Y.
The modules can be combined. Set the priority so that a line is not discounted twice. Whether a bonus needs special treatment under tax or competition law is for the shop operator to check with their legal adviser.
No download — personal setup instead
Buy X Get Y is not listed here as a ready-made download file for self-installation. The purchase is a service commission: we get in touch after the purchase, install the module in your shop and agree on triggers, bonuses and limits together with you.
Frequently asked questions
Everything important about triggers, bonuses, limits and how the purchase works.
How can I set up “Buy X, get Y free” in Magento 2?
Can Y also be discounted instead of free?
What happens in Magento 2 Buy X Get Y when the customer reduces the quantity of X?
How can I limit the bonuses in Magento 2?
Does Magento 2 Buy X Get Y work with configurable products?
Can I limit Magento 2 Buy X Get Y to customer groups or periods?
Can the bonus be combined with coupons?
Does Magento 2 Buy X Get Y work with Hyvä?
How is the module different from Free Gift?
Can I download and install the module myself?
Magento 2 Buy X Get Y – Mironsoft