What is the event observer for new product added to the catalog by admin? I need to send a request when a new product added or updated. Is there an event observer available for that?
Asked
Active
Viewed 6,370 times
3 Answers
6
You can use
catalog_product_new_action
catalog_product_edit_action
catalog_product_prepare_save
catalog_controller_product_delete
More info refer wiki magento event reference

Palanikumar
- 1,706
- 5
- 28
- 51
-
Thanks, do you know where i can find the documentation for Magento events. I tried to search but i couldn't find anything but the list of available events. – Mohsen Mehraein Oct 11 '12 at 12:43
-
Check simple example here http://www.pierrefay.com/event-observers-magento-tutorial-howto-105 – Palanikumar Oct 11 '12 at 13:21
-
https://www.nicksays.co.uk/magento-events-cheat-sheet-1-7/ you can found list of events here. – Manikandan Arunachalam Sep 12 '17 at 08:18
2
You can Try :
<catalog_product_save_before>
<observers>
<yourmodule>
<type>singleton</type>
<class>yourmodule/observer</class>
<method>catalog_product_save_before</method>
</yourmodule>
</observers>
</catalog_product_save_before>
<catalog_product_save_after>
<observers>
<yourmodule>
<type>singleton</type>
<class>yourmodule/observer</class>
<method>catalog_product_save_after</method>
</yourmodule>
</observers>
</catalog_product_save_after>
http://blog.chapagain.com.np/magento-event-observer-with-save-before-and-save-after/

Arsalan
- 128
- 1
- 8