Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Vietnamese Dongs...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-12-2010, 09:21 AM
 
crcool75 crcool75 is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 87
 

Default 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.
__________________
X-Cart Gold 4.4.0
Reply With Quote
  #2  
Old 09-12-2010, 11:35 AM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: Vietnamese Dongs...

You might want to try editing the following template:

currency.tpl
__________________
X-cart 4.1.10
Reply With Quote
  #3  
Old 09-12-2010, 02:50 PM
 
crcool75 crcool75 is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 87
 

Default 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.
__________________
X-Cart Gold 4.4.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020