Shopware 6-用装饰商修改的价格在产品价格过滤器中无法正常运行

发布于 2025-02-13 22:09:54 字数 774 浏览 0 评论 0原文

I used the example AbstractProductPriceCalculator from the developer page, to dynamically modify a product's price from whatever was entered in Admin into say 1EUR.这一切都很好。产品排序价格ASC/DESC也有效。

https://developer.shopware.com/docs/guides/plugins/plugins/plugins/plugins/checkout/cart/customize-price-price-calculation

但是默认店面上的价格范围过滤产品的价格是管理中的价格,而不是装饰价格。

还有另一种动态设置价格的方法,它们也可以通过过滤器运行吗?

任何提示都赞赏

“在此处输入图像描述”

I used the example AbstractProductPriceCalculator from the developer page, to dynamically modify a product's price from whatever was entered in Admin into say 1EUR. This all works just fine. The product sorting Price asc/desc works too.

https://developer.shopware.com/docs/guides/plugins/plugins/checkout/cart/customize-price-calculation

But the price range filter on default Storefront does not work, this still think the product has the price that was entered in Admin - not the decorated price.

Is there another way to dynamically set prices such they function with the filters too?

Any hints appreciated

enter image description here

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

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

发布评论

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

评论(1

城歌 2025-02-20 22:09:54

价格过滤器是由saleschannelproductentity :: CheepeStprice生成的,因此请确保还要更改此问题,如文档中所示。

The price filter is generated from SalesChannelProductEntity::cheapestPrice, so make sure to also change this, as indicated in the docs.

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