Decimal places for small values
-
Hi,
I have an issue with the formating of very small prices. I have a range of ingredients which are available in small quantities and have a low unit price. I have therefore a hook that formats the price in this particular category (“Ingredient”) to 3 decimal places on the cart and checkout forms. But it is not formating the price in the discount table so instead of getting 0.029, 0.023, 0.019 and 0.015, I get 0.03, 0.02, 0.02 and 0.01 and the total is rounded accordingly. (100 pieces is calculated as 2.00 and not 1.90).I do not want to set my site decimals at greater than 2 since this complicates all reporting and Cart/Checkout value formats.
Do you have a solution or a hook that can achieve the same as the main price?
Thanks for your help.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.