Nathaniel Wendt
Nathaniel Wendt

Reputation: 1202

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 greatly appreciated!

Upvotes: 0

Views: 1609

Answers (1)

Nasaralla
Nasaralla

Reputation: 1839

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.

Upvotes: 1

Related Questions