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

How do you include fields in the checkout process?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-24-2002, 03:50 PM
 
fusionartstamps fusionartstamps is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 124
 

Default How do you include fields in the checkout process?

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
Reply With Quote
  #2  
Old 10-25-2002, 04:33 AM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

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
Reply With Quote
  #3  
Old 10-27-2002, 02:57 PM
 
fusionartstamps fusionartstamps is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 124
 

Default

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
Reply With Quote
  #4  
Old 10-27-2002, 11:45 PM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

Hi Amy,

I now understand what you want to do.

The Mr, Mrs etc is in the "config.php" file

Quote:
#
# Defined Titles
#
$name_titles = array("Mr.","Mrs.","Ms.","Dr.");
$smarty->assign("name_titles",$name_titles);


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
Reply With Quote
  #5  
Old 08-31-2004, 01:07 AM
 
rgbdna rgbdna is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 31
 

Default skin1/main/register_contact_info.tpl

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.
Reply With Quote
  #6  
Old 08-31-2004, 07:19 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

include/register.php
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 11:50 AM.

   

 
X-Cart forums © 2001-2020