X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Vietnamese Dongs... (https://forum.x-cart.com/showthread.php?t=55494)

crcool75 09-12-2010 09:21 AM

Vietnamese Dongs...
 
Hello,

We are currently adding the Vietnamese language to our X-Cart as an alternate language (eventually the primary language). The language is not the problem, it's the currency that's causing an issue.

$1.00 USD = 20.000₫ VN Dongs

They don't use commas, but decimals to distinguish thousands. In addition, take the following scenario:

$175.00 USD = 3.500.000₫ VN Dongs

X-Cart displays this as 3500000.00₫, a very long number that's unneeded.

Is there a way to eliminate the two decimal places on the end and add decimals as commas? We would like to round off the number to the nearest 1.000, but that's not as important as the proper display at this time.

robertswww 09-12-2010 11:35 AM

Re: Vietnamese Dongs...
 
You might want to try editing the following template:

currency.tpl

crcool75 09-12-2010 02:50 PM

Re: Vietnamese Dongs...
 
Thanks, but it's a little confusing. It seems currency.tpl is just fooling with variables. I think the decimal/comma thing is burnt into X-Cart's core function.


All times are GMT -8. The time now is 11:51 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.