开发者

Magento Event (Which event is called on Index?)

开发者 https://www.devze.com 2023-03-27 07:06 出处:网络
As stated in the question, which event is fired when someone goes into the admin panel and selects reindex data for Catalog Search 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

精彩评论

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

关注公众号