![]() |
|
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"> 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 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 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 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.
Open form.cgi in notepad or any text editor and you will see near the first part of the file: <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. |