Frage

I need to create an observer in Magento that listens for the event that is called when someone re-indexes the Catalog Search Index.

So which event is called when someone indexes Catalog Search Index? Thanks?

Edit: I am looking at the event: catalogindex_plain_reindex_after

Would this be the correct one?

http://www.magentocommerce.com/wiki/5_-_modules_and_development/reference/events

War es hilfreich?

Lösung

I would recommend running this grep from command line and building out an events txt file of available events you can hook into. That list may be pretty dated you linked.

grep -r Mage::dispatchEvent /path/to/your/Magento/* > events.txt

Andere Tipps

If you need an observer on a certain page, you can uncomment the Varien_Profiler in index.php and enable it in the Developer section of the config. Once it is enabled you should see a table on the bottom of your page with everything that happened on that page. Look for DISPATCH EVENT:.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top