Author Topic: Decimal places in currency  (Read 4952 times)

tutyi

  • Beginner
  • *
  • Posts: 11
Decimal places in currency
« 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!

tutyi

  • Beginner
  • *
  • Posts: 11
Re: Decimal places in currency
« Reply #1 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)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Decimal places in currency
« Reply #2 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 .
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

prema

  • Beginner
  • *
  • Posts: 6
Re: Decimal places in currency
« Reply #3 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.

kg

  • Beginner
  • *
  • Posts: 26
Re: Decimal places in currency
« Reply #4 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

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Decimal places in currency
« Reply #5 on: March 08, 2012, 13:33:09 pm »
oh, interesting hint, thanks kg
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/