Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Additional fields in Customer Info & Checkout

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-25-2003, 10:00 PM
 
Jerry Jerry is offline
 

Member
  
Join Date: May 2003
Location: Santa Rosa, CA
Posts: 18
 

Default Additional fields in Customer Info & Checkout

I need to add a field to the customer info (client wants day and night phone numbers). I also have to add a comments field to the checkout process for the person ordering to enter comments outside the normal ordering info that always seems to crop up.

The first one needs to be added to the database and the second one just needs to be included in the form and then sent with the email order. Any suggestions would be appreciated. Thanks, G.
Reply With Quote
  #2  
Old 06-30-2003, 05:36 AM
 
Jerry Jerry is offline
 

Member
  
Join Date: May 2003
Location: Santa Rosa, CA
Posts: 18
 

Default

Just received this from the X-Cart crew (Vasily Karyaev, Technical support engineer)

You should do the following:

1. Create yet another filed 'phone2' in the 'xcart_customers' table.

2. Add the following lines to the 'skin1/main/register.tpl' template:

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

3. Modify the 'include/register.php' script.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:02 AM.

   

 
X-Cart forums © 2001-2020