• Resolved Arkadiusz

    (@technikjkagro1)


    I have an issue with the rounding of the prices, as I’m testing the discounts on my web store. I’ve noticed the inconsistencies with the rounding.

    There’s one product that costs 9.12 before discount -3 percent, the result comes up as 8.8543. My program then takes that result and adds VAT which results in indenialable 10.8908, so it’s 10.89, period.

    And then Woocommerce rounds up 8.8543 to 8.85, then takes that round up value and… 10.8855 gets turned into 10.88

    My point is, if there’s a plugin or a code snippet to change the way prices are calculated in Woocommerce?

Viewing 1 replies (of 1 total)
  • Thread Starter Arkadiusz

    (@technikjkagro1)

    I just swapped to Dynamic Pricing plugin and that plugin uses more correct (for me) way of calculating discounts, o I’ll mark this as resolved.

    Reasoning, when making discount, Discount Rules uses x/1.03 discount, while Dynamic Pricing uses x*0.97 for the same discount…

    Which happens to give the EXACT price with no rounding errors.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.