Copied to clipboard

Flag this post as spam?

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


  • Johannes Lantz 156 posts 838 karma points c-trib
    Nov 16, 2022 @ 14:21
    Johannes Lantz
    0

    Product calculator discount percentages

    Hi! I am using a product calculator for Vendr 2.1.0.

    I am using 2 discounts, 1 active, 1 code. Both are using percentage as a reward. 35% & 20%.

    From what I've come to understand Vendr adds the percentages and then calculates the discount. So it becomes 55% off the unit price.

    Let's say we have a product that cost 725 kr. The discounted price would then be 326 kr (55% discount). But we want it to first calculate the 20% and then 35%. So first 20% off 725 kr Which becomes 580 kr and then 35% off 580 kr which becomes a total of 377 kr. I've added a product calculator to calculate it this way. But the transaction amount still displays 326 kr (55% discount).

    Do I need to add another type of calculator in order for the transaction amount to become correct? Or is there an other way to go about this?

    //Johannes

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 16, 2022 @ 15:03
    Matt Brailsford
    0

    Hi Joannes,

    Discounts are applied in order of how they are defined in the back office, so as long as your 20% discount appears before the 35% discount, it should apply the 20 and then apply the 35 to previous discounted price.

  • Johannes Lantz 156 posts 838 karma points c-trib
    Nov 17, 2022 @ 11:06
    Johannes Lantz
    0

    Hi Matt!

    After a bit of tinkering I found out that this happens because our 20% is an total price reward. While our 35% reward is Orderline With product amount.

    So I had to change them to be of the same type of discount!

    //Johannes

Please Sign in or register to post replies

Write your reply to:

Draft