X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Update "states.tpl" to list as: State [CountryCod (https://forum.x-cart.com/showthread.php?t=9030)

Adian009 08-22-2004 12:07 PM

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

Ryano 09-21-2004 10:10 AM

I like that...I changed mine. Thanks a lot for the mod!

jimmy_ 09-28-2004 02:53 AM

Will this mod work on v4.0.4? ??

sixsigma 01-03-2005 04:25 PM

Thanks
 
Thanks for the great post on US States. Exactly what I was looking for!

markwhoo 01-03-2005 06:17 PM

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


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

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