Trailing zeros cut off even when they are part of the price #2015

LeGaS opened this Issue Dec 18, 2012 · 1 comment


None yet

2 participants

LeGaS commented Dec 18, 2012


I have found an interesting thing while building a shop with WooCommerce.

My price formatting options are the following:

Currency position: right (with space)
Thousands separator: [space]
Decimal seperator: .
Number of decimals: 0
Trailing zeros: checked

If I add a product to the cart that ends with zeros (for example 40 000 HUF), everything looks fine (in the cart and on the order review page) until I click the order button. On the thank you page it shows only 4 HUF and this value gets recorded to the database as well.

If I change the price to 40 005 HUF then it is working correctly.

For now, I've changed the number of decimals to 2 so it works, but I don't really want to show these.

I am using WordPress 3.4.2 and WooCommerce 1.6.6 and tried it with the default theme and a custom theme (Flexishop -


Fixed in 2.0

@mikejolley mikejolley closed this Dec 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment