문제

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

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