View Single Post
  #1  
Old 10-29-2007, 05:59 AM
 
mike@tatechnology.net mike@tatechnology.net is offline
 

Senior Member
  
Join Date: May 2006
Posts: 132
 

Default /main/states.tpl

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
Reply With Quote