Discount rounding issue – how to remove decimal places?
-
Hi everyone!
I have a webshop where I display net prices. One of my products costs 2,071 HUF (no decimal places, as we only use whole numbers for Hungarian forints). If I purchase this product, the total amount is, of course, 2,071 again. The net price is the same in my business management system, and everything works as expected.However, when I apply a 35% discount, the price becomes 1,346.15 HUF. In reality, I expect it to be 1,346 HUF, but the plugin uses two decimal places. This causes a 1 HUF difference in the gross amounts every time. Since this is a large B2B webshop, these discrepancies add up significantly.
How can I ensure that there are no decimal places and that the plugin follows the WooCommerce settings?
Thank you in advance for your help!
- You must be logged in to reply to this topic.