开发者

Magento Event (Which event is called on Index?)

As stated in the question, which event is fired when someone goes into the admin panel and selects reindex data for Catalog Search Index?

I tried running grep on my command shell and I cannot seem to get that to work (to get a list of events). I've tried looking at event lists and can't find the correct one.

I would tend to think that the event catalogindex_plain_reindex_after would be fired, but I have tried this and that is not the case...

Any help would be great开发者_如何学Goly appreciated!


If you cannot find any particular event dispatch you can always get the following event on controller:

<controller_action_postdispatch_adminhtml_index_process_massReindex>...</controller_action_postdispatch_adminhtml_index_process_massReindex>

and in the observer you can get the controller params as:

$observer->getEvent()->getData('controller_action')->getRequest()->getParam('some_id_or_variable');

where 'some_id_or_variable' is the value you want to get from request params.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜