Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Seal 524 posts 2889 karma points MVP 7x c-trib
    May 20, 2021 @ 06:55
    Paul Seal
    0

    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

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    May 20, 2021 @ 08:09
    Matt Brailsford
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft