Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted