Magento哪个事件叫?需要建立一个观察者 [英] Magento which event is called? Need to build an observer

查看:339
本文介绍了Magento哪个事件叫?需要建立一个观察者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Magento中创建一个观察者,用于监听当有人重新索引目录搜索索引时调用的事件。

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?

编辑:
我正在看事件:
catalogindex_plain_reindex_after

I am looking at the event: catalogindex_plain_reindex_after

这是正确的吗?

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

推荐答案

我建议从命令行运行这个grep,并建立一个可以挂钩的可用事件的事件txt文件。这个列表可能很漂亮,你链接了。

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

这篇关于Magento哪个事件叫?需要建立一个观察者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆