| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How do you include fields in the checkout process? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Does anyone know how to add fields to the checkout process? I'm trying to add a field that says "Where did you hear about our company" and then it will have a drop down menu next to it with about 5 different options. I also need to make this a mandatory field? Any suggestions?
Thanks!! Amy |
|||||||
#2
|
|||||||
|
|||||||
![]() Hi Amy,
v3.2.1 check /customer/main/anonymous_checkout.tpl this file controls step 1 checkout. check /customer/main/checkout.tpl, this file controls step 2 & 3 checkout process. Regards,
__________________
Syddos Nothing is impossible, We just don't know how to do it ........Yet! Xcart 4.1.X PRO (Testing Platform: winXP Pro) Perl 5.8.7 (win32) WINAMP 1.6.3 (win32 server package. Includes the following) - phpMyAdmin v2.8.03 - MySql 5.0.21 - Apache 2.0.55 (win32) - php 5.1.4 - SQLitemanager 1.2.0 |
|||||||
#3
|
|||||||
|
|||||||
![]() Syddos,
Actually it's main/register.tpl that I need to edit. I'm not sure what variables to include though. For example the pulldown menu for Title, ie Mr. Mrs. is: <tr valign=middle> <td align=right>{$lng.lbl_title}</td> <td><font class=StarStyle>*</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> I need to have a similar pulldown menu for where a customer found out about my company. The pulldown would have about 5 options. From the code above I'm not sure what the smarty code would be for this and what other file I need to change where the Mr. Mrs, etc options are. Thanks! Amy |
|||||||
#4
|
|||||||
|
|||||||
![]() Hi Amy,
I now understand what you want to do. The Mr, Mrs etc is in the "config.php" file Quote:
Just add the other titles you require. Regarding the "Pull Down Menu" (Option Select List), I assume you would want the info your customers enter, to be included in the stats, and the data stored in the database, I'm not sure about the code required, or how many php/tpl/MySQL/javascript files that would have to be created or altered, it's not a mod I've attempted yet. Perhaps BOOMER may have more info. Regards,
__________________
Syddos Nothing is impossible, We just don't know how to do it ........Yet! Xcart 4.1.X PRO (Testing Platform: winXP Pro) Perl 5.8.7 (win32) WINAMP 1.6.3 (win32 server package. Includes the following) - phpMyAdmin v2.8.03 - MySql 5.0.21 - Apache 2.0.55 (win32) - php 5.1.4 - SQLitemanager 1.2.0 |
|||||||
#5
|
|||||||
|
|||||||
![]() Can someone tell me where the skin1/main/register_contact_info.tpl check for mandatory field validity?
What file it check to see if it's null or entered? I want to understand how to make fields in this include mandatory or not mandatory. Thanks, rgbdna
__________________
v.3.10.5 Great creative direction is clarity cleverly delivered. |
|||||||
#6
|
|||||||||
|
|||||||||
![]() include/register.php
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|