|

View Demo
Requirements
Comparison Chart
Support
Download Demo
|

Define the variables in the ccart.cfg as follows:
#############################################################
# Custimization portion Complete update v4.0
#######################################
# The path to sendmail on your system.
# If you have an error, ask your sysadmin.
## Only change this section if not using sendmail.##
$smtpmail = 0; # 1 = SMTP mail; 0 = Sendmail
$smtpdomain = 'mail.benzadesign.com';
$blat = 0; # 1 = Blat mail; 0 = 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;}
elsif($smtp == 1) {
$mail = '$smtpdomain';
$tempfile = '/home/jwh/public_html/.scripts/cart/temp';
}
else {
$blat = 1; # If Blat is used remove '#' in subs.pl
$mail = 'c:/winnt/system32/blat.exe'; # line 1477 through 1481
$tempfile = "c:/temp";
$list_mail = "sales\@exsolution.com";
$list_name = "EZ-Solution.com";
} # or another mail system.
#######################################
# System: are you using Un*x , Win32, or MacOS ??
# 1 = unix
# 2 = Win32 (WinNT / Win95)
# 3 = MacOS
$system = 1;
if ($system == 1) {
$windows = "No";
$dpath = "$ENV{'SCRIPT_FILENAME'}";
$dpath =~ s/\/uploader\.pl$//g;
$delim = "/" }
elsif ($system == 2) {
$windows = "Yes";
$dpath = "$ENV{'PATH_TRANSLATED'}";
$dpath =~ s/\\uploader\.pl$//g;
$delim = "\\" }
elsif ($system == 3) { $delim = ":" }
$registrar = 'register.txt';
#####################################
# Your company name
# The Vendor Name
$company_name = "Metro Marketing, Inc."; # Sensitive CC info
$company_head =
"$company_name
2263 Belle Vista Court, Suite 100
Marietta, GA 30062";
$ven_name1 = "Atlanta Metro Mall"; # No Sensitive info
$ven_name2 = "MetroCredit"; # Sensitive CC info for MetroCredit
#####################################
# The URL and Path of your domain,
# SSL, and URL of your home page.
@referers = ('www2.secure-website.net/~jwh',
'secure.authorize.net/gateway/transact.dll',
'www.metromkt.net','metromkt.net');
$baseurl = "http://www.metromkt.net"; #Base Std URL
$baseurl_ssl = "https://www2.secure-website.net/~jwh"; #Base SSL or Std URL
$cgi_url = "/cart/cgi/shopcart.cgi"; #URL to cart.cgi
$home_page = $baseurl . " "; #Home Page
$myhome = "$baseurl";
$basepath = "/home/jwh/public_html/cart"; #Base Path
$sslext = '~jwh'; #secure server url extension
$ssl_yes = 1; #Use SSL
#####################################
# The SSL URL of Authorize.net
# The image of your Authorize.net page.
$authorize = 1; # Authorize.net 1 = yes, 0 = no
$auth_login = "metmark";
$auth_pass = "Quest1";
#####################################
# Database Functions
$activedatabase = 1; # 1 = activate
$databaseurl = $baseurl . "/cart/cgi/database.cgi";
$adminurl = $baseurl . "/cart/cgi/ccadmin.cgi";
$db_venurl = $baseurl . "/cart/dbase_ven";
$imageurl = $baseurl . "/cart/images/file";
$imageurl_ssl = $baseurl_ssl . "/cart/images";
$imageupload = $baseurl . "/cart/upload.html";
$emailpgm = $baseurl . "/cart/cgi/mail.pl";
$uploader = $baseurl . "/cart/cgi/uploader.pl";
$trackdb = "track.txt"; # tracking database located in $dbasev_dir
$resourcedb = "database.db"; # Item Database located in $db_dir
$passwd_file = "passwd.txt"; # Admin Password File located in $db_dir
$groupdb = "group.db"; # groupdatabase located in $db_dir
$adheader = "header.html"; # Header for Admin located in $db_dir
$adfooter = "footer.html"; # Footer for Admin located in $db_dir
@split_table_fields = ('itemid', 'name', 'price', 'descrip', 'image', 'weight', 'itemurl', 'group', 'Junk');
# $fields = "fields.dat"; # datbase fields located in $db_dir
$idfile = "item.id"; # Item ID number located in $db_dir
$useimage = 1; # Allow images. yes = 1, no = 0;
$w1 = 75;
$h1 = 75;
$imageopt = "border=1 height=$w1 width=$h1";
$useid = 1; #Display the product ID number? yes = 1, no = 0;
$numtolist = "20"; #number of items to display one one page
$font_face = "SANS MS,ARIAL"; #
$font_color = "000000"; ## Display of fonts created on the fly
$font_size = "-1"; ##
$font_sizew = "-2"; # weight only
#####################################
# Tracking Functions
$activeadmin = 1; # 1 = activate
$usetrack = 0; # use Tracking. yes = 1, no = 0;
%trackoption = (
"mail", "Mail-in Pending", #
"pending", "Not Processed", ##
"processed", "Processing", ### Status possibilities.
"shipped", "Shipped", ##
"error", "Problem with order"); #
# Additional text e-mailed to the user (when updating)
%tracktext = (
"mail", "Your order is pending payment!\n",
"pending", "Your order is pending payment or creditcard approval!\n",
"processed", "Your order is in Queue for shipping!\n",
"shipped", "Your order has been sent out, please contact us if you have any questions!\n",
"error", "There is a problem with your order. Please contact us so we may process ypur order!\n"
);
$emailtrack = 1; # E-mail when orders are processed. yes = 1, no = 0;
#####################################
# Image uploading
$imagedir = "$basepath/images/file/";
$home = "$databaseurl";
$image_dir = "$imageurl";
$max_filesize = '131072';
$images_only = "Yes"; # options Yes or No # allow files or images only.
$exe_files = "No"; # options Yes or No # allow executables, Set to No
$images_check = "No"; # options Yes or No # Check and test Image. Set to No.
$back = (-2); # options -1 or -2 # back button; -1 to upload form; -2 before form
#####################################
# Which URL should load on 'Continue Shopping'.
$default_location = ""; ## comment out for single page return.
# $default_location = $baseurl . "/cart/cgi/database.cgi"; ## uncomment for single page return
#####################################
# Bypass the "Add Item" or Go to viewing screen '1'.
# Use one or the other or neither
$useredirect = '0'; # Bypass add and go back to order page
$direct = 1; # Bypass add and go to 'View Cart'
#####################################
# Add a '.' before the domain name.
# (Use SSL domain if SSL used.)
$Cookie_Domain = ".metromkt.net"; # Holds the I/P Address
$cgi_path = " "; # "/cart/cgi"; # "For greater cookie control";
$usecookies = 0; # Normal is 1
#####################################
# Don't change this Area. It controls
# creation of the carts.
$tmpdir = "tmp"; # Temporary directory for Shopping Carts
$refdb_file = "reftmp.db"; # ...read & write
$refdb = "$basepath$delim$tmpdir$delim$refdb_file";
require 'subs.pl';
&get_date;
$storename = $monthday; # Storename.
#####################################
# The path to the data directory
$db_dir = $basepath . "/data";
#####################################
# The paths to the customer database.
# The paths to the vendor database.
$dbasec_dir = $basepath . "/dbase_cus";
$dbasev_dir = $basepath . "/dbase_ven";
$customer = 0; # 1 = save Customer dbase
$vendor = 1; # 1 = save Vender dbase
#####################################
# '1' activates the EZ-Affiliate or Little Affiliate
$testeza = 0; # '1' allows counts on 'Mail-in's'
$aaffiliate = 1; # '1' activates'
if ($aaffiliate == 1) { require '/home/jwh/public_html/eza/cgi/affiliate.pl'; }
$littleaffilliate = ""; #leave Blank if not used
#####################################
# Shipping Options
# Add "Ship to" in checkout 1=add
$shipadd = 1;
#####################################
# Shipping options. Any "1" will include the information in @soptitle.
# Seperate option for software Downloads
@sopex = (1,1,1);
$sop0 = "USPS Piority Mail 3-5 day delivery.";
$sop1 = "USPS Piority Mail 3-5 day delivery.";
$sop2 = "FedEx in US";
$sop3 = "Fedex Overseas";
@soptitle = ($sop1, $sop2, $sop3);
$download = 1; # Inactive with type 4 shipping
$intlship = 1; # Add $sop2 automatically
#####################################
# Each ship option has two values. First is a percentage
# multiplied by the subtotal. Second is the cash charge.
@sopdigit = (.05, 4.00, .05, 15.00, .05, 20.00);
#####################################
# Indicate a percentage(1), cash charge(2),
# or both(3) of the subtotal.
# (4)(locate only in $soptype[0]) is cash by total.
# @soptype = (1,2,3); # %, cash, both
# @soptype = (2,0,0); # cash only
#####################################
@soptype = (4,0,0); # cash by total only
$stottype = 1; # 0 = quantity 1 = dollars 2 = Weight
# Values 1 = the cash shipping charge.
# Values 2 = the subtotal, subqty, or subweight boundaries.
# the last figure is the > number.
@shopqty = (5.00,20, 7.50,35, 9.00,50, 10.00,65, 12.00,100, 15.00, 150, 18.00,200, 20.00,300, 25.00, 500, 0.00);
#####################################
# Add-on shipping cost. (Type (4) shipping only.)
# Shipping cost per add-on.
if ($soptype[0] == 4) {
$sop1 = "2nd day UPS add (\$3.00)";
$sop2 = "FedEx add (\$11.00)";
$sop3 = "Overseas add (\$25.00)";
@soptotal = ($sop1, $sop2, $sop3);
@shoptotal = (3.00, 11.00, 25.00); # Shipping cost for above
$st1 ="AK"; $st2= "HI"; $shipspecial = 8.00; # Special shipping in the US but not on the US continent
#####################################
# The two letter code for your state.
# The State tax decimal format. Currency Used
$taxyes = 0; # 1 = display tax
@state = ("AK","AL","AZ","AR","CA","CO","CT","DE","FL","GA");
@statetax = (.00, .00, .00, .00, .00, .00, .00, .00, .00, .00);
$curr = "\$"; #$curr = '$'; #'£'; # '$';
#####################################
# A site-wide discount in decimal format
$site_discount = .10;
$site_wide = 0; # 1 = usage
#####################################
# Payment methods. "1" indicates usage
# (credit, check, wire transfer, mail-in, cod)
@methods = (1,1,0,1,0);
$minimum = '10.00'; # Minimum Order
#####################################
# Check Style and I-Check customer URL
$check = 1; # 0 = std, 1 = check style, 2 = I-check
$icheckurl = 'https://paybycheck.com/?id=00000000';
#####################################
# The email address orders will be sent
# to for processing. **Use the \ before the @ symbol.**
$whoto = "webmaster\@metromkt.net"; # Sensitive CC info
$ven_add1 = "mall\@metromkt.net"; # No Sensitive info
$ven_add2 = "sales\@metromkt.net"; # Sensitive CC info for MetroCredit
$evendor = 0; # 1 = usage; #$ven1 or $ven 2
$ven1 = 0; # 1= email # No Sensitive info
$ven2 = 0; # 1= email # Sensitive CC info for MetroCredit
$email_test = 0;
#####################################
# Submitter email controls
$emailsaddrs = "emailsaddrs.txt"; # Customer email database
$collect = "collect.txt"; # Customer info database
$save_cinfo = 1; # yes = 1, no = 0; # Save Customer Info of sumbitter to file?
$saveemail = 1; # yes = 1, no = 0; # Save email addresses of sumbitter to file?
$remove_link = 1; # allow removal of email from email list
$emaildatabase = $db_dir . "/$emailsaddrs"; # email addresses of submitter is saved.
$address_file = $db_dir . "/$collect"; # customer info of submitter is saved.
#######################################
# E-Mail for Admin only
$name_list = "Metro Marketing Mailing List"; # NAME OF YOUR MAILING LIST
$your_email = "sales\@metromkt.net"; # YOUR EMAIL ADDRESS
$your_name = $company_name; # SENDERS NAME
$name_url = $baseurl; # URL OF YOUR SITE
$name_home = $company_name; # COMPANY OR SITE NAME
#$mail_prog = $mail;
$data_path = $basepath . "/data"; # path of the two data files.
$email_file = $emaildatabase; # Name of the email file.
$sig_file = $data_path . "/sig.txt"; # Signature File
$pwd_file = "password.txt"; # Name of the password file.
$thisurl = $ENV{'SCRIPT_NAME'};
$mail_url = $ENV{'SERVER_NAME'};
#####################################
# A service fee for orders under an amount.
# and the Fee
$service_fee = 0; # 1 = usage
$fee = 4.00;
#####################################
# The max amount of the order to incur a
# service fee
$boundary = 100.00;
#####################################
# The amount added to all COD orders
$cod_charge = 5.00;
#####################################
# Verify all Credit Card orders,
$useverify = 1; # 1 = usage
#####################################
# Displays
$advertisement = "Your Advertisement or Header";
$footer = "Your Footer";
$counter = "Your page counter";
$bgcolorb = "FFFFFF"; # background and font color for
$fontcolorb = "0080C0"; # the main body
$bgcolora1 = "000051"; # background and font color for
$fontcolora1 = "FFFFFF"; # All beginning description borders
$bgcolor1 = "0080C0"; # background and font color for
$fontcolor1 = "FFFF00"; # Add/Delete and View results
$bgcolor2 = "0080C0"; # background and font color for
$fontcolor2 = "FFFF00"; # Final and COD
$bgcolor3 = "FFFFFF"; # background and font color for
$fontcolor3 = "000000"; # Mailin
$bgcolor4 = "E1E1E1";
## Colors for the ADMIN Mailer ##
$table_head_bg = "DARKSLATEBLUE"; # Background color of the small header row of the table
$table_head_text = "white"; # Color of the text in the table header
$table_body_bg = "#C0C0C0"; # Background color of the main body of the table
$table_body_text = "black"; # Color of the text in the body of the table
## DONE
#####################################

Metro Marketing, Inc.
2263 Belle Vista Court; Marietta, GA 30062
toll free: 1-877-619-2800
|