Percentage based discount rounding error
-
I’m having an issue with rounding for percentage based discounts:
- I have a product that has an regular price of 327.99
- I have a user role that receives a 40% price decrease on this product so their price is 196.794 per item. The order item cost is shown as 196.79
- If that customer orders 2, their price for the two items is 393.588 but woocommerce rounds this to $393.59
- Now 196.79 x 2 is NOT equal to $393.59 which is not correct but that is what is displayed to the customer.
How can this be prevented and the correct totals arrived at?
Role Based Pricing 1.4.4 (licensed)
WP 5.5.3
Woocommerce 4.7.0
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Percentage based discount rounding error’ is closed to new replies.