For more information on the product see the WebDock
Web Cart home page.
WebDock is not resonsible for ANYthing that occurs because of use of this
software. The user accepts ALL responsibility for ANYthing and EVERYthing
that occurs.
Drawing of program flow.
Example HTML page with buttons and Javascript
directly inserted.
You must use the following directory structure:
/cgi-bin
/cgi-bin/cgi-secure
checkout.cmd and finished.cmd must be called with the https protocol for
secure transactions
/cgi-bin/cgi-secure/images
** images refrenced from the scripts in the cgi-bin/cgi-secure directory must be loaded from here.
To change payment type you must edit two script files:
in file checkout.cmd edit line 352
in file finished.cmd edit line 167
To add email notification edit the file finished.cmd. Unrem line 365 and
create a text file that contains the message to me mailed. Here
is a sample text file.
If you are using the powerweb secure server you can use the following to
include the JavaScript file automatically into the html document. See the
documentation for your web server on server side includes. This is recommended
because it gives you one file to update if changes are necessary to the
file at a future time.
<script language=javascript>
<!--#fetch url=www.location.com/java/javaS.js -->
</script>
or
<script language=javascript>
<!--#include virtual="/java/javaS.js" -->
</script>
If your clients are ONLY going to be using Netscape Communicator or IE3
or greater, you can use the following javascript tag:
<script language=javascript src="java/javaS.js" >
</script>
Client side Web Browser requirements: A JavaScript enabled browser. Netscape
2.0 - 4.0 or IE 3.0 - 4.0
The following file has the javascript that
must be include in every HTML page and the buttons for adding an item to
a shopping cart. There are buttons for both sizable (small,medium,large)
items and nonsizable items.
In the text file the button code for both buttons has a location for a
product ID called value. Put your products id here.
example: in the following code my product id is 2. From the productfile,
2 is for a Blue Corvette.
<input type="hidden" name="product" value="2">
The following is the contents of the product
file. This file must exist. This file contains all the products on
your web site that you wnat to sell. 0 is reserved.
The format is:
web_id,product_id,description,price
**web_id does not have to be sequential but it does have to be unique.
Web_id can be the same as product_id.
0,Your Cart is Empty,--,0
1,256A,Red Corvette,10.65
2,256B,Blue Corvette,20
999,256C,White Corvette,30.50
24,256D,Black Corvette,40.45
Gotchas