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

Update "states.tpl" to list as: State [CountryCod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 08-22-2004, 12:07 PM
 
Adian009 Adian009 is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Tiverton, RI, USA
Posts: 37
 

Default Update "states.tpl" to list as: State [CountryCod

I am a keyboard (versus mouse) person and when I am filling in forms, I like to press the "R" key to get Rhode Island (the only US R State!)

X-Cart, however, lists there states like this: US: Rhode Island, so my keying an R would not work.

If you make this change in the /skin1/main/states.tpl file, you can list your states in the list box as: Rhode Island [US], which makes it much easier for many folks (IMHO).


CHANGE THIS: {$states[state_idx].country_code}: {$states[state_idx].state}

TO THIS: {$states[state_idx].state}[{$states[state_idx].country_code}]

Well, that is it!

--al
__________________
---------------------------------------------
Infosolv, LLC
A Professional Services Company
X-Cart v3.5.10 & 4.01
Find our MOD\'s at: Custom X-Cart MOD\'s, Add-On\'s & X-Cart Hosting!
Reply With Quote
  #2  
Old 09-21-2004, 10:10 AM
 
Ryano Ryano is offline
 

Senior Member
  
Join Date: Jun 2004
Posts: 192
 

Default

I like that...I changed mine. Thanks a lot for the mod!
__________________
xcart v3.5.8 (Unix)
and
xcart v4.0.13
Reply With Quote
  #3  
Old 09-28-2004, 02:53 AM
 
jimmy_ jimmy_ is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 37
 

Default

Will this mod work on v4.0.4? ??
Reply With Quote
  #4  
Old 01-03-2005, 04:25 PM
 
sixsigma sixsigma is offline
 

Newbie
  
Join Date: Dec 2004
Posts: 2
 

Default Thanks

Thanks for the great post on US States. Exactly what I was looking for!
Reply With Quote
  #5  
Old 01-03-2005, 06:17 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default Re: Update "states.tpl" to list as: State [Countr

Quote:
Originally Posted by Adian009
I am a keyboard (versus mouse) person and when I am filling in forms, I like to press the "R" key to get Rhode Island (the only US R State!)

X-Cart, however, lists there states like this: US: Rhode Island, so my keying an R would not work.

If you make this change in the /skin1/main/states.tpl file, you can list your states in the list box as: Rhode Island [US], which makes it much easier for many folks (IMHO).


CHANGE THIS: {$states[state_idx].country_code}: {$states[state_idx].state}

TO THIS: {$states[state_idx].state}[{$states[state_idx].country_code}]

Well, that is it!

--al

Appreciate the tip...

Used this in 4.0.9 vs and works fine
__________________
vs 4.1.12
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 03:39 AM.

   

 
X-Cart forums © 2001-2020