The Home for Magento 2 Excellence

Automated build tests for Magento 2 modules. Explore. Evaluate. Elevate. #magento2

1061 Modules
673 Ready
387 Need Help
Vendors 🏆 Leaderboard
Actively Maintained v1.2.3 commercial

Auto Add Free Product for Magento 2

zero1limited/module-auto-add-free-product 80

Adds an Auto Add Free Product cart-rule action that automatically adds a specified SKU to the cart as a zero-cost item when qualifying products are present, enabling Buy-one-get-one-free promotions.

9
Downloads
Below average
1
GitHub Stars
Below average
12d ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
22 warnings
PHPStan Failed

Release Discipline

Follows SemVer · 100% What is this?

Release history audited up to v1.2.3

Tested on Magento 2.4.9

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.2.3 on Magento 2.4.9
Nov 3, 2026
v1.2.2 on Magento 2.4.9
Oct 29, 2026
v1.2.1 on Magento 2.4.9
Jun 1, 2026

Share This Module's Status

Auto Add Free Product for Magento 2 Magento compatibility status badge

README

Loaded from GitHub

magento2-AutoAddFreeProduct

User Guide

  1. Create a new Cart Rule from Marketing > Promotions > Cart Price Rules
  2. Make sure it has no coupon code
  3. Set the conditions to be a Sku is conditions. This will be the Buy 1... part of the Buy 1 get this free
  4. Set the action to be Auto Add Free Product
  5. Set the condition on the action to be a Sku is condition. This will be the ...get this free part of the Buy 1 get this free

When adding the product described by part 3 to the cart, you will get the product described by part 5 automatically added to the cart as a 0-cost item.

Other conditions and coupon codes

The rule can also use a coupon code, and/or any other conditions (e.g. "Subtotal (Excl. Tax) greater than 50"). When the conditions are anything other than the single "Sku is" condition from part 3, one free product is added while the rule applies.

Free product lines

The free product is added as its own cart line, separate from the same product added to the cart by the customer. Its qty is kept in step with the rule, and it is removed again when the rule no longer applies (e.g. the paid product is removed, or the coupon code is removed or replaced).

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.