我需要找到哪些方法火灾时,下列事件调度Magento:查找派发事件的观察者?
Mage::dispatchEvent('sales_quote_add_item', array('quote_item' => $item));
我知道如何创建自定义事件挂钩,它应该留在config.xml中,但我不能为这个sales_qute_add_item找到钩在任何配置XML中。
我需要找到哪些方法火灾时,下列事件调度Magento:查找派发事件的观察者?
Mage::dispatchEvent('sales_quote_add_item', array('quote_item' => $item));
我知道如何创建自定义事件挂钩,它应该留在config.xml中,但我不能为这个sales_qute_add_item找到钩在任何配置XML中。
这是确定的。在Magento中,这个事件没有默认监听器。 Magento核心团队专门为定制目的添加了此事件。
做这样的
<events>
<sales_quote_add_item>
<observers>
<your_observer_name>
<type>model</type>
<class>Your_Observer_Class</class>
<method>yourObserverMethod</method>
</your_observer_name>
</observers>
</sales_quote_add_item>
</events>
只要搜索所有配置XML文件
<sales_quote_add_item>
如果它是在一个事件标签再看看方法和类的,看看有什么文件,它是英寸