Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I am wondering if there is any way to know that product is added to the wishlist from 'Category/List' page OR 'Product View' page. I need this only when product is successfully added to the wishlist.
Any help would be appreciated.
You could write your own observer that catches a magento event.
Here is the event cheat sheet , and here is a tutorial by inchoo on how to write an observer.
You can observe wishlist_add_product and check for the referer url.
See how to here.
Required, but never shown