i am trying to disable the state and the country from showing up in the
Registration form, so i wrote the fallowing if
Code:
{if $store_language ne "FL"}
<tr valign=middle>
<td align=right>{$lng.lbl_state}</td>
<td>{if $states ne ""}<font class=Star>*</font>{/if}</td>
<td nowrap>
{include file="main/states.tpl" states=$states name="b_state" default=$userinfo.b_state default_country=$userinfo.b_country}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_country}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<select name=b_country onChange="check_zip_code()">
{section name=country_idx loop=$countries}
<option value={$countries[country_idx].country_code} {if $userinfo.b_country eq $countries[country_idx].country_code}selected{elseif $countries[country_idx].country_code eq $config.General.default_country and $userinfo.b_country eq ""}selected{/if}>{$countries[country_idx].country}</option>
{/section}
</select>
</td>
</tr>
{/if}
but when i try to register the display is ok(no state and no country)
but the submit give me an error that i have mistakes in my form.
any idea ?
and another thing,
why "register.php" won't recognize the variable "$store_language"