cancel
Showing results for 
Search instead for 
Did you mean: 

Do some action on success event of add to wishlist or other events like newsletter subscription

Do some action on success event of add to wishlist or other events like newsletter subscription

Hi I want to do some actions based on the success or error of these events. Would like to do some actions based on these, I am beginner in this. Can somebody please help me. thanks

1 REPLY 1

Re: Do some action on success event of add to wishlist or other events like newsletter subscription

Hi @wester9208,

 

Maybe you can start investigating about events and observers: http://devdocs.magento.com/guides/v2.2/extension-dev-guide/events-and-observers.html

 

For example, if you add a product to the wishlist the event

 

wishlist_add_product

Is fired.