⚠️ 🛣 This issue is a part of the Sylius Public Roadmap 🛣 ⚠️
Currently the frontend (default theme) doesn't show any discounts (old & current price), even not when they are applicable at product/taxon level. They become visible in cart/checkout. From a marketing perspective, it would be very useful to have the more visible throughout the shop and easier to fetch from e.g. the shop API.
Majority of the customisations I had to perform to our current shop are things to make the promotions more visible. Unfortunately due to the heavy customisations, I can't really easily share them in a PR.
@stefandoorn We discussed this a while ago here: #7079.
I think that is an interesting feature that Sylius is missing. In Magento it's named Catalog Price Rules
As this feature does not exist yet, we usually write our custom implementation of ProductVariantPriceCalculatorInterface and we extend ProductVariantViewFactory in ShopAPI to return the calculated price.
This calculator can be used in ShopBundle through sylius_calculate_price Twig filter
There used to be the UrbanaraCatalogPromotionPlugin https://github.com/URBANARA/UrbanaraCatalogPromotionPlugin although as far as I know it is no longer maintained.
But I think I will move thisrevival into the roadmap :) Thanks @stefandoorn and @gorkalaucirica :)
I hope that this feature will be accepted. :)
For my perspective too, it seems natural to show discounts on the product page (and also shopping cart) when the discount is attached directly to the product/taxon level.
There's also https://github.com/Snake-Tn/SyliusCatalogPromotionPlugin if you want some inspiration.
This might also be interesting: https://github.com/Setono/SyliusBulkSpecialsPlugin (cc @loevgaard)
Most helpful comment
There used to be the UrbanaraCatalogPromotionPlugin https://github.com/URBANARA/UrbanaraCatalogPromotionPlugin although as far as I know it is no longer maintained.
But I think I will move thisrevival into the roadmap :) Thanks @stefandoorn and @gorkalaucirica :)