Magento 事件(索引上调用哪个事件?)

发布于 2024-11-29 07:55:32 字数 219 浏览 1 评论 0原文

正如问题中所述,当有人进入管理面板并选择目录搜索索引的重新索引数据时会触发哪个事件?

我尝试在命令 shell 上运行 grep ,但似乎无法使其正常工作(获取事件列表)。我尝试查看事件列表,但找不到正确的事件列表。

我倾向于认为事件 Catalogindex_plain_reindex_after 会被解雇,但我已经尝试过,但事实并非如此......

任何帮助将不胜感激!

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回忆躺在深渊里 2024-12-06 07:55:32

如果您找不到任何特定的事件调度,您始终可以在控制器上获取以下事件:

<controller_action_postdispatch_adminhtml_index_process_massReindex>...</controller_action_postdispatch_adminhtml_index_process_massReindex>

并且在观察者中您可以获取控制器参数:

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

其中“some_id_or_variable”是您想要从请求参数获取的值。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文