X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Additional fields in Customer Info & Checkout (https://forum.x-cart.com/showthread.php?t=3346)

Jerry 06-25-2003 10:00 PM

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.

Jerry 06-30-2003 05:36 AM

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.


All times are GMT -8. The time now is 01:17 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.