- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Thanks
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe you can use observers. You can listen for checkout_cart_product_add_before event to do something.
There are another events like:
- checkout_cart_add_product_complete
- checkout_cart_product_add_after
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe you can use observers. You can listen for checkout_cart_product_add_before event to do something.
There are another events like:
- checkout_cart_add_product_complete
- checkout_cart_product_add_after
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Add to Cart call inside extension
Thanks Damien, I think that's it Cheers