Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 Buy X Get Y: Bonus Product Automatically in the Cart

Magento 2 Extension Hyvä Ready Magento 2.4.x

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
Auf Lager
€149.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

6 features

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 pair X and Y

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.

01Trigger

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
Marketing › Buy X Get Y › Trigger
Trigger XCategory cameras (example)
Minimum quantity1
Exclusiondiscontinued items
Marketing › Buy X Get Y › Reward
Product YBag (example)
Discount50%
Limit per order1
02Reward

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
03Cart

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
Cart › Promotion
1 more item to the bonushint
Bag (example)− 50%
Bonusautomatic
Stores › Configuration › Mironsoft › Buy X Get Y
Total cap200 (example value)
With other promotionsno
Reportingactive
04Control

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
Use cases

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.

Comparison

Magento 2 Buy X Get Y: with and without the module compared

The difference to cart rules and manual bonuses.

TopicWithout moduleWith Mironsoft Buy X Get Y
BonusManually in packing or via couponAutomatic in the cart with a rule
TriggerOnly cart total or coupon codeProduct, category or attribute with minimum quantity
Customer communicationCustomer does not learn about the bonusHint, progress text and own line
LimitsNo cap on bonusesQuantity cap per order and total cap
MaintenanceSwitch promotions on and off by handPeriod, pausing and reporting
Setup

How we set up Magento 2 Buy X Get Y for you

The process after you place the order.

1

Briefing

You tell us triggers, bonuses and target groups. Together we clarify whether Y is free, discounted or sold at a fixed price.

2

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.

3

Hints

We write the texts for cart and product page per language.

4

Testing

We check quantity changes, unavailable Y products, the total cap and the combination with your existing promotions.

5

Handover

Your team gets an introduction to rules, limits and reporting.

Delimitation

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.

05How the purchase works

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.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

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?
With Magento 2 Buy X Get Y you choose the trigger product or category, the minimum quantity and the Y product with the calculation type free. The module adds Y to the cart automatically.
Can Y also be discounted instead of free?
Yes, Y can be free, discounted by a percentage or sold at a fixed price.
What happens in Magento 2 Buy X Get Y when the customer reduces the quantity of X?
The condition no longer applies, the module removes the bonus and shows a short explanation in the cart.
How can I limit the bonuses in Magento 2?
With a quantity cap per order and a total cap per rule. When the total cap is reached, the promotion ends automatically.
Does Magento 2 Buy X Get Y work with configurable products?
Yes. If Y has required options, the module offers the selection instead of guessing a variant. Unavailable variants are skipped.
Can I limit Magento 2 Buy X Get Y to customer groups or periods?
Yes, every rule has a start, end, priority and filters for store view and customer group.
Can the bonus be combined with coupons?
You set that per rule. By default the combination with other promotions is switched off so that the margin does not drop twice.
Does Magento 2 Buy X Get Y work with Hyvä?
Yes, hints and buttons use Alpine.js and Tailwind. There is no jQuery and no Knockout.
How is the module different from Free Gift?
Free Gift depends on the cart value, Buy X Get Y on the purchase of a specific product or category.
Can I download and install the module myself?
No. This offer is not a download product. After the purchase we install and configure the module personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 Buy X Get Y – Mironsoft
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 Buy X Get Y – Mironsoft

Magento 2 Buy X Get Y – Mironsoft

€149.00