News:

Looking for documentation? Take a look on our wiki

Main Menu

How to make spaces in price amount

Started by eNEXTvm, December 22, 2012, 14:30:34 PM

Previous topic - Next topic

eNEXTvm

Hi,

         how do I make look price look like this 40 000 and not like this 40000 in Virtuemart2?

Thank you for help.

eNEXTvm

In Czech Republic we use spaces between thousands. For example 40.000 in Czech correct version is 40 000, maybe in some other countries too.

I found the solution for this to change CHAR table to TEXT type in MySQL. Then in the field I make just a space and that is it.



[attachment cleanup by admin]

bytelord

Hello,

Didn't know that :)

I make a small test and i see the under configuration -> Currencies if you edit a currency and place a "space" under thousand separator  is not accepted, i try to parse the html space character &nbsp and i see that is displays the & ... so it displays the first character. I did this and  is worked:

under currency thousand separate i press space and then something else like [ .], [ ts], whatever ... on the front the space work fine on thousand's separator, test it ([SPACE][A CHARACTER OR SYMBOL OR DOT OR COMMA]).

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!