在哪里可以找到通过Shopware应用程序自定义搜索的钩子?
我现在正在制作店内软件应用程序,在这里我想通过搜索API扩展搜索。为此,我们已经在商店中有一个工作插件。
我找到了钩子的这两个参考:
- https://developer.shopware.com/docs/resources/references/references/reference/webhook-events-reference-
- https://developer.shopware.com/docs/resources/references/references/app-references/script-reference/script-hooks-reference
似乎根本没有搜索的网络,只有一个脚本钩进行完成的搜索。在插件中,我们可以扩展productsearchRoute
,并完全灵活。
搜索扩展目前未计划吗?
干杯, 托比亚斯
I am prototyping a Shopware App right now, where I want to extend the search with our search API. We already have a working plugin in the store for that.
I found those two references for hooks:
- https://developer.shopware.com/docs/resources/references/app-reference/webhook-events-reference
- https://developer.shopware.com/docs/resources/references/app-reference/script-reference/script-hooks-reference
Seems like there is no webhook for the search at all and just a script-hook for a finished search. In the plugin, we could just extend the ProductSearchRoute
and be completely flexible.
Are search extension not planned right now?
Cheers,
Tobias
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您想改变获取产品的标准。截至今天,非自我托管应用程序是不可能的。如您已经提到的,您可以使用应用程序脚本丰富或替换已经加载的页面的内容。显然,这是关于性能的一些缺点。尽管不断增强应用程序的功能,因此很快就有可能很快就有可能进行搜索操纵。
I assume you want to alter the criteria for fetching the products. As of today this is not yet possible with non-self-hosted apps. You could use the app scripts to enrich or replace the contents of an already loaded page as you already mentioned. Obviously that comes with some drawbacks regarding performance. The capabilities of apps are being enhanced continuously though so there's chance search manipulation might become possible rather soon.