SuperCertHosting.com
Home
Sign Up Now
Account Info
Cert Info
Free Service
Related Links
Support/FAQ
Contact Us
 Additional Services
 • Professional Web Site Design for $20/hr
.
 • Web Programming, CGI, ASP, PHP, Python for $35/hr. 10% Discounts available.

Click here  if these links do not work for you.

 

Shopping Cart Manual

Cart_d.shtml, Cart_d_s.shtml, and Cart_d.shtml

Cart_d is to be used if you are selling a product that can be downloaded and the option to have the product shipped is not available.  Cart_d_s is to be used if you are selling a product that can be downloaded and the option to have the product shipped is available, and Cart_s is to be used if you are selling a product that can only be shipped out to the customer.  You may open and edit any of these files with MS FrontPage or any other html editor to customize the style and look of the pages.  If you would like the java script to check to see if the user entered all the values correctly before he submits the form, there is a line near the beginning of each html file:

<!--#include file="check.html"-->

This line exists by default, but you may remove it if you do not want the script to validate all fields before the user submits the information.
 

There are two lines in the html code of these pages in the form:

<input type="hidden" name="To" value="messages@supercerthosting.com">
<input type="hidden" name="Subject" value="Test">

Change these values to point to your E-mail and the subject you want to receive each time you receive a sale, like sales@mydomain.com and "SALE!".

Adding Products

To add products to the your product list, open list.cgi in notepad.  It will look like this:

#!/usr/bin/perl
%products = ('Product #1',0,'Product #2',1,'Product #3',2,'Product #4',3,'Product #5',4);
@price = ('20.00','10.00','15.00','10.00','9.95');
@limit = (1000,1000,1000,1000);
#application/x-zip-compressed = .zip
#application/x-msdownload = .exe
return 1;
 

To add a product, you must edit 3 variables, %products, @price, and @limit.  Simply add a new value to the end of the array of each variable to add a new product.  TO add a product that costs $100 and is called "Soap Box", and to allow customer to buy no more than 500 of these items at a time, edit the file like this:

#!/usr/bin/perl
%products = ('Product #1',0,'Product #2',1,'Product #3',2,'Product #4',3,'Product #5',4,'Soap Box',5);
@price = ('20.00','10.00','15.00','10.00','9.95',100.00');
@limit = (1000,1000,1000,1000,500);
#application/x-zip-compressed = .zip
#application/x-msdownload = .exe
return 1;
 

Save This file and upload it to the server for the changes to take affect.

Changing How Products Are Displayed

Open the products.cgi file, it will look like this:

#!/usr/bin/perl
require 'list.cgi';

print "Content-type: text/html\n\n";

foreach (sort keys %products) {
$i = $products{$_};
$ii++;
print <<EOF;

<tr align="center">
<td width="455" height="25" align="left"><font size="1" face="Arial">$_</font></td>
<td width="74" height="25" align="left"><font face="Arial"><small><small>\$$price[$products{$_}]</small></small></font></td>
<td width="26" height="25"><font face="Arial"><small><small><input NAME=$ii SIZE="5"></small></small></font></td>
</tr>

EOF

}
 

To edit the look of how the products are displayed, edit the code after the line print <<EOF;  The line EOF indicates that the end of the text that will be displayed when the product list is loaded on the shopping cart page.


Changing The Thank You Page

Open form.cgi in notepad or any text editor and you will see near the first part of the file:

<html>
<head>
<title>Test</title>
</head>
<body>
<p align="center"><font face="Verdana" size="4">Thank you for your order!</font></p>
<p><font face="Verdana" size="2">This is a test page for the shopping cart order
form page.</font></p>
<p><font face="Verdana" size="2">Return to </font><a href="http://www.supercerthosting.com"><font face="Verdana" size="2">www.supercerthosting.com</font></a></p>
</body>
</html>

This is the code for the thank you page.  You may edit it in frontpage and copy it back into the .cgi file.  Upload the file to the server for the changes to take effect.



Copyright © 2003 Super Cert Hosting. All Rights Reserved.
SuperCertHosting.com is an Alpine Snow Company.