I have a following problem:
There is a 3rd party extension which automatically adds products to cart as gifts when user adds some specific product. It also applies coupon. For example it adds free WiFi receiver when user wants to buy a TV. It adds products good enough, but there must be a shopping cart rule to make a 100% discount for these products.
What I need to do is to make this extension to add these products as free without shopping cart rule. The only event i found connected with discounts is sales_quote_address_discount_item
, but any operations with it gave no results.
So I would be really grateful if someone points me in the right direction: where exactly in code is this discount applied and how can I make the same from this extension?