Shopware 6-用装饰商修改的价格在产品价格过滤器中无法正常运行
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也有效。
但是默认店面上的价格范围过滤产品的价格是管理中的价格,而不是装饰价格。
还有另一种动态设置价格的方法,它们也可以通过过滤器运行吗?
任何提示都赞赏
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
价格过滤器是由
saleschannelproductentity :: CheepeStprice
生成的,因此请确保还要更改此问题,如文档中所示。The price filter is generated from
SalesChannelProductEntity::cheapestPrice
, so make sure to also change this, as indicated in the docs.