Magento – Shopping Cart Price Rule: Buy Amount X of Product A, Get 1 Product B Free

free-giftshopping-cart-price-rules

Is it possible in the shopping cart price rules to create a rule that gives you a rule like "buy amount X of Product A, get 1 Product B for free"?

For example:

buy 8 of SKUs 123, 124 or 125, get SKU 126 Free

Best Answer

The feature you're looking for is a free gift/auto free gift/promo items functionality. Magento does not come with this feature out of the box.

I created a similar module for one of our costomers, this is how it works if you want to create your own module:

Depending on when you want to add the free product, use one of these events:

Add the product to the cart (user is able to remove the free product)

sales_quote_add_item if you want your product B to be automatically added to the cart if user adds product A.

You might also remove the free product B when product A is removed from cart, use sales_quote_remove_item for this.

Add the product to the quote/order

sales_convert_quote_to_order if you want your product B to be added automatically to the order after the user placed the order. The user will now automatically have product B as product in his order and will see the result in the order details.

Related Topic