Is there a way to get a free gift added to the cart when a specific coupon code has been used?
It would be nice if the gift would be a product that is in the catalog, with a unique SKU.
Possible scenario:
A buyer uses the code
WANTGIFT
while in the cart. At the end of the
checkout he will see an additional product with a cost of0.00
in
the checkout summary. After the sell the store will automatically
reduce the stock of free gift by1
.
Any suggestions if it is possible with Magento 1.5 or does anyone know a good extension that does the job?
Best Answer
Yes this is possible but you need to create an extension.
Admin
You have to rewrite the following block "promo_quote_edit_tab_actions".by overrideing this you can able to place free product selection code in action dropdown while creating coupon code. Also place text field to enter SKU of the product insert this SKU in database "salesrule" table
Front
For front end functionality write down event observer "salesrule_validator_process" in which do code if coupon code applied and if some SKU is assigned via admin then add product into cart.