View Single Post
  #1  
Old 10-10-2004, 12:47 PM
 
sherwood sherwood is offline
 

Member
  
Join Date: Apr 2004
Posts: 16
 

Default changing the customer registration info not working

Hi,

I wanted to create a custom registration page for customers but upon clicking submit the "form has errors" message appears when running a test. I am using version 3.5.7 . our website is at www.sherwoodsforest.com if anyone can take a look and see what you think I would sincerely appreciate the help!

Here is the code I have for register_billing_address...
{* $Id: register_billing_address.tpl,v 1.1.2.1 2004/04/09 07:07:28 svowl Exp $ *}
<tr valign=middle>
<td height=20 colspan=3>{$lng.lbl_billing_address}<center><font color=red>Billing Information</td>
</tr>

{if $action eq "cart"}
<INPUT type=hidden name="action" value="cart">
<INPUT type=hidden name="paymentid" value="{$paymentid}">{/if}

<tr valign=middle>
<td align=right>{$lng.lbl_first_name}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=b_firstname size=32 maxlength=32 value="{$userinfo.b_firstname}">
{if $reg_error ne "" and $userinfo.b_firstname eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>


<tr valign=middle>
<td align=right>{$lng.lbl_last_name}Last Name</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=b_lastname size=32 maxlength=32 value="{$userinfo.b_lastname}">
{if $reg_error ne "" and $userinfo.b_lastname eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>


<tr valign=middle>
<td align=right>{$lng.lbl_address}Address</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=b_address size=32 maxlength=64 value="{$userinfo.b_address}">
{if $reg_error ne "" and $userinfo.b_address eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>

<tr valign=middle>
<td align=right>{$lng.lbl_city}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=b_city size=32 maxlength=64 value="{$userinfo.b_city}">
{if $reg_error ne "" and $userinfo.b_city eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_state}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}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>

<tr valign=middle>
<td align=right>{$lng.lbl_zip_code}Zip Code</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=b_zipcode size=32 maxlength=32 value="{$userinfo.b_zipcode}" onChange="check_zip_code()" >
{if $reg_error ne "" and $userinfo.b_zipcode eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>

Here is the code for register_contact_info.tpl...
{* $Id: register_contact_info.tpl,v 1.1.2.1 2004/03/26 09:47:34 svowl Exp $ *}
<tr valign=middle>
<td height=20 colspan=3><font color=red><center>Contact Information</center</td>
</tr>

<tr valign=middle>
<td align=right>Phone</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=phone size=32 maxlength=32 value="{$userinfo.phone}">
{if $reg_error ne "" and $userinfo.phone eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>

<tr valign=middle>
<td align=right>E-Mail</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=email size=32 maxlength=128 value="{$userinfo.email}">
{if $emailerror ne "" or ($reg_error ne "" and $userinfo.email eq "")}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>

<tr valign=middle>
<td align=right>Fax</td>
<td></td>
<td nowrap>
<input type=text name=fax size=32 maxlength=128 value="{$userinfo.fax}"></td>
</tr>

<tr valign=middle>
<td align=right>Web site</td>
<td></td>
<td nowrap>
<input type=text name=url size=32 maxlength=128 value="{$userinfo.url}"></td>
</tr>
{include file="customer/main/checkout_notes.tpl"}

Here is the code for register_personal_info.tpl...
{* $Id: register_personal_info.tpl,v 1.1.2.1 2003/11/24 08:51:59 svowl Exp $ *}
<tr valign=right>
<td height=20 colspan=3><font color=red><center>{$lng.lbl_personal_information}Business Information</font><font color=black>
(For Business Owners Applying For Wholesale Privilages only)</font></font></center>
</td>
</tr>



{*<tr valign=middle>
<td align=right>{$lng.lbl_title}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<select name=title>
{section name=title loop=$name_titles}
<option {if $userinfo.title eq $name_titles[title]}selected{/if}>{$name_titles[title]}</option>
{/section}
</select>
</td>
</tr>*}

{*<tr valign=middle>
<td align=right>{$lng.lbl_first_name}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=firstname size=32 maxlength=32 value="{$userinfo.firstname}">
{if $reg_error ne "" and $userinfo.firstname eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>*}

<tr valign=middle>
<td align=right>{$lng.lbl_owners_name}Owner's Name</td>
<td></td>
<td nowrap>
<input type=text name=ownersname size=32 maxlength=32 value="{$userinfo.ownersname}">
{if $reg_error ne "" and $userinfo.ownersname eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>

<tr valign=middle>
<td align=right>{$lng.lbl_company}Company Name</td>
<td></td>
<td nowrap>
<input type=text name=company size=32 maxlength=32 value="{$userinfo.company}">
</td>
</tr>

<tr valign=middle>
<td align=right>Business License/Tax ID#</td>
<td></td>
<td nowrap>
<input type=text name=license size=32 maxlength=32 value="{$userinfo.license}">
</td>
</tr>

<tr valign=middle>
<td align=right>Type of Business</td>
<td></td>
<td nowrap>
<input type=text name=Type of Business size=32 maxlength=32 value="{$userinfo.typeofbusiness}">
</td>
</tr>


{* <TR valign=middle> *}
{* <TD align=right>{$lng.lbl_ssn}</TD> *}
{* <TD></TD> *}
{* <TD nowrap> *}
{* <INPUT type=text name=ssn size=32 maxlength=32 value="{$userinfo.ssn}"> *}
{* </TD> *}
{* </TR> *}

{if $usertype eq "A" or $usertype eq "P"}
<tr valign=middle>
<td align=right>Referred by:</td>
<td></td>
<td nowrap>
{$userinfo.referer}
</td>
</tr>
{/if}

and here is the code for register_shipping_address.tpl...
{* $Id: register_shipping_address.tpl,v 1.1.2.1 2004/04/09 07:07:28 svowl Exp $ *}
<tr valign=middle>
<td height=20 colspan=3><font color=red><center>Shipping Information
<font color=black>(Leave Blank if shipping & Billing name and address are the same)</font></font>{$lng.lbl_shipping_address_registration}
</td>
</tr>

{if $action eq "cart"}
<INPUT type=hidden name="action" value="cart">
<INPUT type=hidden name="paymentid" value="{$paymentid}">{/if}


{*<tr valign=middle>
<td align=right>{$lng.lbl_title}</td>
<td></td>
<td nowrap>
<select name=s_title>
{section name=title loop=$name_titles}
<option {if $userinfo.s_title eq $name_titles[title]}selected{/if}>{$name_titles[title]}</option>
{/section}
</select>
</td>
</tr>*}

<tr valign=middle>
<td align=right>{$lng.lbl_first_name}</td>
<td></td>
<td nowrap>
<input type=text name=s_firstname size=32 maxlength=32 value="{$userinfo.s_firstname}">
</td>
</tr>

<tr valign=middle>
<td align=right>{$lng.lbl_last_name}Last Name</td>
<td></td>
<td nowrap>
<input type=text name=s_lastname size=32 maxlength=32 value="{$userinfo.s_lastname}">
</td>
</tr>


<tr valign=middle>
<td align=right>{$lng.lbl_address}Address</td>
<td></td>
<td nowrap>
<input type=text name=s_address size=32 maxlength=64 value="{$userinfo.s_address}">
</td>
</tr>

<tr valign=middle>
<td align=right>{$lng.lbl_city}</td>
<td></td>
<td nowrap>
<input type=text name=s_city size=32 maxlength=64 value="{$userinfo.s_city}">
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_state}State</td>
<td></td>
<td nowrap>
{include file="main/states.tpl" states=$states name="s_state" default=$userinfo.s_state default_country=$userinfo.s_country}
</td>
</tr>

<tr valign=middle>
<td align=right>{$lng.lbl_country}Country</td>
<td></td>
<td nowrap>
<select name=s_country size=1 onChange="check_zip_code()">
{section name=country_idx loop=$countries}
<option value={$countries[country_idx].country_code} {if $userinfo.s_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>

<tr valign=middle>
<td align=right>{$lng.lbl_zip_code}Zip Code</td>
<td></td>
<td nowrap>
<input type=text name=s_zipcode size=32 maxlength=32 value="{$userinfo.s_zipcode}" onChange="check_zip_code()" >
</td>
</tr>
Reply With Quote