VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: eNEXTvm on December 22, 2012, 14:30:34 PM

Title: How to make spaces in price amount
Post by: eNEXTvm on December 22, 2012, 14:30:34 PM
Hi,

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

Thank you for help.
Title: Re: How to make spaces in price amount
Post by: eNEXTvm on December 22, 2012, 16:45:30 PM
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]
Title: Re: How to make spaces in price amount
Post by: bytelord on December 22, 2012, 16:55:08 PM
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