zero1limited / module-auto-add-free-product
N/A
Package info
github.com/zero1limited/Zero1_AutoAddFreeProduct
Type:magento2-module
pkg:composer/zero1limited/module-auto-add-free-product
Requires
- php: >=8.1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
User Guide
- Create a new Cart Rule from Marketing > Promotions > Cart Price Rules
- Make sure it has no coupon code
- Set the conditions to be a Sku is conditions. This will be the
Buy 1...part of theBuy 1 get this free - Set the action to be Auto Add Free Product
- Set the condition on the action to be a Sku is condition. This will be the
...get this freepart of theBuy 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).