I, I am new to Magento and I need to build a simple extension that injects relevant videos to product pages.
I want to know if it is possible, inside an extension, to know if a user made a click on Add to Cart. If yes, how?
Solved! Go to Solution.
Maybe you can use observers. You can listen for checkout_cart_product_add_before event to do something.
There are another events like:
Listening for those events you'll be able to trigger any other action.
More about Magento observers: http://devdocs.magento.com/guides/m1x/magefordev/mage-for-dev-1.html#8