faqts : Computers : Software : FreeTrade : Customization

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

12 of 12 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

How do I force shoppers to register before checking out?

Nov 22nd, 2000 06:20
C Walker, Leon Atkinson, Joseph Renda, Mailing list


Change the SHOPPER_MUST_REGISTER constant in 
modules/include/global_settings to TRUE.
-----
I noticed some incorrect behavior, in FreeTrade 1.0.3, it has to do 
with the
global setting of "SHOPPER_MUST_REGISTER" that's defined in the global 
section.
The only time that this is check (this definition) is in the
"modules/content" file, thus when looking at your basket.
If I hit, "Checkout" or "Express Checkout" I can skip 
this "requirement" I
set.
Meaning, I wish for all my customers to register & create a login name 
and
password, so they can track their, orders and history.
Thus, I added a fast test in the "order_info" and "order_express" 
screens...
mainly like so...
if ( (SHOPPER_MUST_REGISTER) AND !(isset($UserInfo["ID"] &&
$UserInfo["ID"]>0)
{
 //complain, and show them the 'register' & login links...
}else {
 // Get item from invoice glob.
}
I 'elsed' the first glob of code, because from that point on, you use 
the
$continueScript var to control if the code should continue or not.