VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: tutyi on February 29, 2012, 16:51:50 PM

Title: Decimal places in currency
Post by: tutyi on February 29, 2012, 16:51:50 PM
Hi,

the removal (or change) the number of decimal places in currencies seems to be unusable in VM2.0.2 + JM2.5.1. The currency is set to Hungarian Forint and does not matter what i set in the currency details. The format is always xxxx,xx but if i use a dot as thousand-separator it works. Only problem is with the two decimal places (,00). I tried this in VM1.x.x and there it worked and also tried to go into the code but i wasn't able to manage it. I've also created a new currency in VM2 but it is the same.

Any suggestions please?
Thank you in advance!
Title: Re: Decimal places in currency
Post by: tutyi on March 06, 2012, 23:23:32 PM
Sorry, I was lame. The decimal places must be set in Configuration -> Pricing -> Show Following Prices -> Rounding Digits (it must be set to zero)
Title: Re: Decimal places in currency
Post by: Milbo on March 07, 2012, 09:17:18 AM
:-) You are NOT lame, you found it.

Lame are the people who write annoying posts how bad vm2 is, when in fact their a just not flexible. So you and we rock and the others not :-P .
Title: Re: Decimal places in currency
Post by: prema on March 07, 2012, 20:04:56 PM
And how can i hide the decimals? In our country we don't have smaller money then 5. No cent, nothing.
Now it looks like: 4950,00. But i would like to have 4950

Is this possible? I was setting in currency, in the roundings, in database, so everywhere, but i didn'r find this, where i can change.

Thanks.
P.
Title: Re: Decimal places in currency
Post by: kg on March 08, 2012, 12:31:47 PM
The settings in Configuration -> Pricing -> Show Following Prices -> Rounding Digits is good, but it does not do anything to the rounding in the cart (includijg minicart) emails etc.
It is only for product info in product details, featured broducts, products listing etc.

Where can we set the rounding for the cart etc?

VM 2.0.2 | Joomla 2.5.2 | PHP 5.3.10
Title: Re: Decimal places in currency
Post by: Milbo on March 08, 2012, 13:33:09 PM
oh, interesting hint, thanks kg