
MetroCredit©
|
Configure Cookie Cart-Lite
------------------------
Next, you must define the variables in the cart.cfg as follows:
#######################################
# Custimization portion Complete v1.0
#######################################
# The path to sendmail on your system.
# If you have errors, ask your sysadmin.
## Only change this section if not using sendmail.##
$mailer = '/usr/lib/sendmail';
$mailer1 = '/usr/bin/sendmail';
$mailer2 = '/usr/sbin/sendmail';
if ( -e $mailer) {$mail=$mailer;}
elsif( -e $mailer1){$mail=$mailer1;}
elsif( -e $mailer2){$mail=$mailer2;}
else {
print "Content-type: text/html\n\n";
print "I can't find sendmail, shutting down... ";
print "Whoever set this machine up put it someplace weird.";
exit;
}
# $mail = 'c:\blat\blat.exe'; # other mail system such as blat, etc.
#####################################
# System: are you using Un*x , Win32, or MacOS ??
# 1 = unix
# 2 = Win32 (WinNT / Win95)
# 3 = MacOS
$system = 1;
if ($system == 1) { $delim = "/" }
elsif ($system == 2) { $delim = "\\" }
elsif ($system == 3) { $delim = ":" }
$registrar = 'register.txt';
#####################################
## Begin Configure
#####################################
# Company and Local Information
$companyname = "Metro Marketing, Inc.";
$recipient = "jwh\@metromkt.net";
$subject = "Confirmation Order ";
@referers = ('metromkt.net','www.metromkt.net','209.15.11.69','www2.secure-website.net/~jwh');
$homeurl = "http://www.metromkt.net"; # URL of Home
$order_page = $homeurl . "/shopping1/index.html";
$script_url = $homeurl . "/shopping1/cgi/shopcart.cgi"; # URL of script
#####################################
# Path of directories
$base_dir = "/home/jwh/public_html/shopping1";
$cgi_dir = $base_dir . "/cgi/";
$db_dir = $base_dir . "/data/";
$dta = "database";
$price = "prices.dat";
$collect = "collect.txt";
$product_file = $base_dir . "/$dta/$price"; # product price data file.
#####################################
# Submitter email controls
$saveemail = 1; # Save email addresses of sumbitter to file? 0 for no, 1 for yes.
$sendemail = 1; # Send confirmation email? 0 for no, 1 for yes.
$remove_link = 1; # allow removal of email from email list
$emaildatabase = $base_dir . "/$dta/$collect"; # email addresses of submitter is saved.
#####################################
# Payment type
$mailin_use =1;
$check_use = 0;
$creditcard_use = 1;
$useverify = 1;
#####################################
# Order Directories
$data = "order"; # Order directory
$data_admin = "order_admin"; # Admin Order directory
#####################################
# Cookies
$Cookie_Domain = ".metromkt.net";
$Cookie_Path = " ";
$useredirect = 1; # 1 redirects to previous page after add
#####################################
# Shipping Rates 1st = upper boundry, 2nd = rate
@shiprate = (0,0.00, 20,5.50, 50,6.50, 75,8.50, 100,10.50, 200,15.50, 300,19.50, 22.50);
@shipmeth = ("Ground", "2ndDay", "NextDay");
@shipadd = (0,6,12);
#####################################
# Displays
$advertisement = "";
$footer = "";
$counter = "";
# Borders
$bgcolor1 = "FFFFFF";
$fontcolor1 = "000051";
# background
$bgcolor3 = "000051";
$fontcolor3 = "ffffff";
$bgcolor4 = "0080C0";
$fontcolor4 = "FFFF00";
## DONE
#####################################
The above is a duplicate of what is included in the cart.cfg. If you still have
trouble editing these values then we strongly suggest that you visit our BBS
(http://www.metromkt.net/abbs/cgi/wwwthread.cgi). Or email support at
(http://www.metromkt.net/ccart/mail1.html) for assistance. We are available 9AM to
6PM Monday thru Saturday.
Also go to (http://www.metromkt.net/books/index.html) and search for a good book on Perl
to develop a more thorough understanding of the language and it's use as a web application.
After changing the Variables follow these instructions:
1) The only variable needed to be setup in shopcart.cgi is the location of the perl
interpeter on the 1st line.
#!/usr/local/bin/perl or #!/usr/bin/perl
Contact your ISP for the exact location or use envtest.pl.
2) Upload all the file in the respective directories as indicated above.
Include an index.html file for testing the html page and the script.
|