Is there a Joomla 5 + VM4 compatible solution for this:
When a customer adds a product to the cart that meets certain rules, it automatically adds a gift product. When the customer changes the quantities in the cart, the plugin updates the gift products according to the rules (removes, adds another, etc.).
For example, when you buy 5 products from a certain category, you'll get a gift candy. When you buy 10 or more, you'll get a gift chocolate bar. If you then modify the cart and reduce the quantity to 2, the gift will be removed.
A few years back, there was a solution for this called Bonus Rules from Daycounts, but that has been discontinued.
I was wondering if there is a current solution for that.
Yes, there is, awocoupon from awodev.com.
I have used it for years and it work very well with virtuemart.
Jörgen @ Kreativ Fotografi
Hello,
AwoCoupon could probably handle your rules but it is not really a rules based component, so would not get near as complicated rules as you do with the old bonus rules component.
With AwoCoupon you can create coupons that are buy x get y coupons where the get y can be added/deleted from the cart automatically. You cannot change products as you increase the count but AwoCoupon does have combination coupons. So for your specific situation you could do this:
Coupon A: buy 5 from category get gift candy at 100% discount, where candy is automatically added/deleted from cart
Coupon B: buy 10 from category get gift chocolate at 100% discount, where chocolate is automatically added/removed from cart
Coupon C: create a combination coupon where you add coupons B and A in that order and set process type to first found match
Then use Coupon C.