| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
/main/states.tpl | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I would like to remove the US in front of all the state options in our Contact Us form. We did this in our 4.1.2 install, however, I cannot successfully do it in the 4.1.9. Here is the code
{* $Id: states.tpl,v 1.13 2005/11/30 13:29:35 max Exp $ *} {if $states ne ""} <select name="{$name}" id="{$name|replace:"[":"_"|replace:"]":""}" {$style}> {if $required eq "N"} <option value="">[{$lng.lbl_please_select_one}]</option> {/if} <option value="{if $value_for_other ne "no"}Other{/if}"{if $default eq "Other"} selected="selected"{/if}>{$lng.lbl_other}</option> {section name=state_idx loop=$states} {if $config.General.default_country eq $states[state_idx].country_code || $country_name eq '' || $default_fields.$country_name.avail eq 'Y'} <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="selected"{/if}>{$states[state_idx].country_code}: {$states[state_idx].state}</option> {/if} {/section} </select> {else} <input type="text"{if $name ne ''} id="{$name|replace:"[":"_"|replace:"]":""}"{/if} size="32" maxlength="65" name="{$name}" value="{$default}" /> {/if} I tried removing the country_code pieces, however, it still didn't work properly. Can someone tell me what needs removed/replaced for this to work right? Thanks!
__________________
TA Technologies, Inc. ~Implementing Creative Point of Sale Solutions~ http://www.rmspos.net X-Cart 4.1.10 |
|||||||
#2
|
|||||||
|
|||||||
![]() Remove this:
{$states[state_idx].country_code}:
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|