I want to perform an action whenever a wishlist is updated or created, but I am not able to find that event. If anyone knows that event, please let me know.
Thanks in Advance.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityYou can use wishlist_save_before
or wishlist_save_after
event.
Those events are dispatched whenever a wishlist is saved so it'll be triggered for both creation and update
wishlist_item_save_before
or wishlist_item_save_after
;)
Nov 14, 2016 at 10:49
You can try this event :
<wishlist_item_add_after>
<observers>
<wishlist_change_event>
<class>Your_Class_Name</class>
<method>yourMethodName</method>
</wishlist_change_event>
</observers>
</wishlist_item_add_after>
Magento Core events to save and update Wishlist :
wishlist_add_product
at Mage/Wishlist/controllers/IndexController.php
(line 212)
wishlist_update_item
at Mage/Wishlist/controllers/IndexController.php
(line 329)
You can use below events for your purpose:
please check and try and let me know which work best for you
1) wishlist_add_product
2) wishlist_update_item
3) wishlist_add_item
4) wishlist_product_add_after
5) wishlist_items_renewed