-
tonytheferg β
committed 39504896 on 2.0.x
Issue #3323174 by tonytheferg, dinazaur: Price after vado discount is...
-
tonytheferg β
committed 39504896 on 2.0.x
- Status changed to Fixed
about 2 years ago 7:01pm 27 January 2023 - πΊπ¦Ukraine dinazaur
Hello, @tonytheferg I found the problem with the approach of rounding price.
If the item price after the bundle discount application is 39.3757 we have 15 items in the cart. 39.3757 * 15 = 590.64 (590.6355). But if we will round the order item price it will be 39.38 which will lead to a total price of 38 * 15 = 590.70. Which is higher than should be.
From what I see Vado for the moment is not usable with PayPal. (And even with other payment gateways, because sending such a price 39.3757 through the API could lead to unexpected results)
The solution would be to apply adjustments to the total order item price, instead of the unit price.
- πΊπ¦Ukraine dinazaur
We agreed that it's better to sell items using a bit lowest price, so clients will not be so angry. Here is a temporal patch. But the problem should be definitely fixed in another way.