Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
qc (Guest)
qc (Guest)
Is it possible to change curriencies format, from coma to dot ?
Last modified: 15 Mar 2007 5:22 PM
 
Anjula
Anjula
Hi,
 
Unfortunately, at present it is not possible to change the format of currencies. We use a standard function of PHP number_format and we take what it returns to us. Usually, the number format looks like 10,000.00.
 
Regards,
ViArt Support Team
 
DonMarco
DonMarco
Hi Anjula
 
What is your opinion regarding this that function "number_format" could actually be presented in different format and that your softweare could show currencies in many european currencies:
 
http://si.php.net/number_format
 
Regards
DonMarco
 
Eugene (Guest)
Eugene (Guest)
Hi,
 
Surely, you can make a formating that you require by finding all calls of function number_format in all .php files and replacing a call like
number_format($amount, 2)
by the following form of this function
number_format($amount, 2, ',', '.')
 
But please note that there are rather lot of files that use function number_format(). Also after such customizing you shopping cart will loose compatibility with further upgrades. The upgrades will be available but to apply them you would be required to recreate all your changes in .php files once more.
 
So we recommend you to make such customizing only if are not intended to upgrade you cart in future.
 
WBR,
Eugene
ViArt Support Team
 
What is your opinion regarding this that function "number_format" could actually be presented in different format and that your softweare could show currencies in many european currencies:
 
http://si.php.net/number_format
 
Regards
DonMarco