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)
-   -   User Friendly Listing of States (https://forum.x-cart.com/showthread.php?t=7315)

successful 04-26-2004 09:00 AM

User Friendly Listing of States
 
X-cart has "US:" before each state in the billing and shipping address. This is not very user friendly since most users type in a letter to get to their state. How can we remove the US: prefix ?

shan 04-27-2004 02:54 AM

open main/states.tpl

Code:

{* $Id: states.tpl,v 1.1.4.3 2004/04/09 07:07:28 svowl Exp $ *}
{if $states ne ""}
<select name="{$name}" {$style}>
<option value="Other">Other</option>
{section name=state_idx loop=$states}
<option value="{$states[state_idx].state_code}"{if $default eq $states[state_idx].state_code and $default_country eq $states[state_idx].country_code} selected{/if}>{$states[state_idx].country_code}: {$states[state_idx].state}</option>
{/section}
</select>
{else}
<input type=text size=32 name="{$name}" value="{$default}">
{/if}


change to

Code:

{* $Id: states.tpl,v 1.1.4.3 2004/04/09 07:07:28 svowl Exp $ *}
{if $states ne ""}
<select name="{$name}" {$style}>
<option value="Other">Other</option>
{section name=state_idx loop=$states}
<option value="{$states[state_idx].state_code}"{if $default eq $states[state_idx].state_code and $default_country eq $states[state_idx].country_code} selected{/if}>{$states[state_idx].state}</option>
{/section}
</select>
{else}
<input type=text size=32 name="{$name}" value="{$default}">
{/if}


successful 04-28-2004 05:34 AM

Thanks!

Cart Security 06-07-2004 04:33 PM

Thanks
 
Thanks for the tip, I've been wanting to do that forever! :D :D :D :D :twisted:


All times are GMT -8. The time now is 02:09 PM.

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