문제

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

도움이 되었습니까?

해결책

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

다른 팁

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:.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top