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)
-   -   How do you include fields in the checkout process? (https://forum.x-cart.com/showthread.php?t=412)

fusionartstamps 10-24-2002 03:50 PM

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

syddos 10-25-2002 04:33 AM

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,

fusionartstamps 10-27-2002 02:57 PM

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

syddos 10-27-2002 11:45 PM

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,

rgbdna 08-31-2004 01:07 AM

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

shan 08-31-2004 07:19 AM

include/register.php


All times are GMT -8. The time now is 03:39 PM.

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