Unfortunately there is no easy way to get this at the moment. The problem we have is that discounts are based on our rule builder which can take many things into account so the only way to truly work out what discount applies is to add an item to an order and calculate the order.
I believe some have gotten around this a little by creating a temporary order adding the product and then checking the discounts amount but this isn't very performant.
Generally our recommendation though not perfect is to have an originalPrice field to hold a fixed pre-discount price for visual purposes only, or setting some global percentage discount property say on the homepage and automatically apply that percentage onto the price to display manually.
I'd love to be able to show discounted prices but I'm really not sure how we can do this with our current discounts setup. I think this might need an open discussion on how this could be achieved and what the expectations would be.
Show price after discount on product page
On the product page I need to show the new price after discount. How do I get this please? I’m using Vendr 1.8
Hi Paul,
Unfortunately there is no easy way to get this at the moment. The problem we have is that discounts are based on our rule builder which can take many things into account so the only way to truly work out what discount applies is to add an item to an order and calculate the order.
I believe some have gotten around this a little by creating a temporary order adding the product and then checking the discounts amount but this isn't very performant.
Generally our recommendation though not perfect is to have an
originalPrice
field to hold a fixed pre-discount price for visual purposes only, or setting some global percentage discount property say on the homepage and automatically apply that percentage onto the price to display manually.I'd love to be able to show discounted prices but I'm really not sure how we can do this with our current discounts setup. I think this might need an open discussion on how this could be achieved and what the expectations would be.
Matt
is working on a reply...