The discount engine can handle rather complex discount rules so it can't really decide which discounts apply until a product is in an order.
For example, say you have a discount rule that says
20% off all products in category X, where the shipping method is Y, and order total is < £20
This isn't possible to calculate to display on the product page as it is totally dependent on the state of the order.
The only way I've seen people to "fake" this is to generate a temporary order, add the product to that order then see what discount is applied, but this can be pretty intensive for the sake of showing the discounted price.
Vendr: Show product price based on discount rule
Hi,
When we have an active discount in our vendr store, the discount is applied correctly in the checkout process.
Is it possible to get the discount rules and apply these on the product detail page? (20 % discount on all products of a certain category for example)
Kind Regards,
Sander
Our setup:
Umbraco 10.2.1 (not hosted on umbraco cloud) Vendr 3.0.4
Unfortunately not.
The discount engine can handle rather complex discount rules so it can't really decide which discounts apply until a product is in an order.
For example, say you have a discount rule that says
This isn't possible to calculate to display on the product page as it is totally dependent on the state of the order.
The only way I've seen people to "fake" this is to generate a temporary order, add the product to that order then see what discount is applied, but this can be pretty intensive for the sake of showing the discounted price.
Thanks for your answer.
We will further look into it and see if "faking" an order might be a solution or that we will build something custom around it.
is working on a reply...