Welcome to Islandnet.com  
Locally owned and operated since 1993  
Live Help
LOG IN:  Username:    Password:    

Basket Order Form

The order form is an HTML file that is used to collect details from the customer after he or she has decided to stop shopping and to make the purchase. This is where you collect the customer's contact info, shipping address, payment option, etc.

The form can include any number of input items with any field names you want. However certain field names are reserved for special purposes:

save
This is a comma-separated list of field names that will be saved in a cookie on the customer's computer. These are also the fields that will be automatically filled in if it is a repeat customer. Note that it is NEVER a good idea to save credit card information between visits!
cin
If this field is present AND it is set to "on", then the fields listed in the save field will be saved. You can make this a checkbox field if you want the customer to be able to choose, otherwise make it a hidden value.
If you plan to use the i-Check payment system then the following fields must be present as they are passed to the i-Check server:

Name, Address, City, Province, Postal, and Email

If you are planning on supporting real-time credit card purchases via an InternetSecure merchant account, then the following fields MUST be present as they are passed to the InternetSecure server along with the product list:

Name, Address, City, Province, Country, Postal, Phone, and Email

If you are NOT using InternetSecure to process credit cards you might want to use the special field name "ccnum". If that field exists in your order form it will be checked for validity using the LUHN formula, and if it isn't a valid credit card number the customer will be prompted to fix it.

The form may contain placeholders which will be replaced with variable values automatically. For example, if your form contained the following input field the customer would always have to type in his name each time, even if the system already knows it:

<input name=name>
To have a form value pre-filled (when possible) use a placeholder, like this:

<input name=name value="{name}">
Note that wherever you have a variable name enclosed in a pair or braces it will be replaced with the current value of that variable.

In the case of a pull-down list you must use a special placeholder. For example, if we want the Province field to be selected properly we would use this:

<select name=province>
{province@ms2/basket.pro}
</select>
The {province@ms2/basket.pro} placeholder will automatically generate a list of <option value=""> lines from the file "ms2/basket.pro". It will also use the current value of the "province" variable to pre-select one of the values. The file used must look something like this:

AB|Alberta
BC|British Columbia
MB|Manitoba
NB|New Brunswick
NF|Newfoundland
NT|Northwest Territories
NS|Nova Scotia
ON|Ontario 
PE|Prince Edward Island
QC|Quebec
SK|Saskatchewan
YT|Yukon   

Sample Order Form:

<h3>Please provide the following information:</h3>
<form method=post action=/cgi-bin/ms2/guest/basket>
<input type=hidden name=save
    value="name,address,city,province,country,postal,company,phone,email">
Save customer information? <input type=checkbox name=cin checked>
Name: <input name=name size=30 value="{name}"><br>
Address: <input name=address size=30 value="{address}"><br>
City: <input name=city size=30 value="{city}"><br>
Province/State: <select name=province>
<option name="">
{province@ms2/basket.pro}
</select><br>
Country: <select name=country>
<option name="">
{country@ms2/basket.cou}
</select><br>
Postal/ZIP Code: <input name=postal size=15 value="{postal}"><br>
Company: <input name=company size=30 value="{company}"><br>
Phone Number: <input name=phone size=30 value="{phone}"><br>
Email Address: <input name=email size=30 value="{email}"><br>
Payment Method: <select name=method>
<option name="">
{method@ms2/basket.mth}
</select><br>
<input type=submit name=action value="Proceed">
<input type=submit name=action value="Continue Shopping">
<input type=submit name=action value="Cancel">

Sample basket.pro File (Province List):

NOTE: If you are submitting to InternetSecure, you MUST use this exact file!

AB|Alberta
BC|British Columbia
MB|Manitoba
NB|New Brunswick
NF|Newfoundland
NT|Northwest Territories
NS|Nova Scotia
ON|Ontario 
PE|Prince Edward Island
QC|Quebec
SK|Saskatchewan
YT|Yukon   
AL|Alabama  
AK|Alaska
AZ|Arizona 
AR|Arkansas
CA|California
CO|Colorado 
CT|Connecticut
DE|Delaware
FL|Florida    
GA|Georgia
HI|Hawaii
ID|Idaho
IL|Illinois
IN|Indiana
IA|Iowa
KS|Kansas
KY|Kentucky
LA|Louisiana
ME|Maine
MD|Maryland
MA|Massachusetts   
MI|Michigan
MN|Minnesota
MS|Mississippi 
MO|Missouri
MT|Montana
NE|Nebraska
NV|Nevada
NH|New Hampshire
NJ|New Jersey  
NM|New Mexico
NY|New York 
NC|North Carolina
ND|North Dakota
OH|Ohio
OK|Oklahoma  
OR|Oregon   
PA|Pennsylvania
RI|Rhode Island
SC|South Carolina
SD|South Dakota
TN|Tennessee
TX|Texas 
UT|Utah 
VT|Vermont 
VA|Virginia
WA|Washington
DC|Washington D.C.
WV|West Virginia
WI|Wisconsin
WY|Wyoming  
00|Other
11|None

Sample basket.cou File (Country List):

NOTE: If you are submitting to InternetSecure, you MUST use this exact file!

CA|Canada
US|United States
AU|Australia
BE|Belgium
BR|Brazil
FR|France
DE|Germany
HK|Hong Kong
IT|Italy
JP|Japan
KR|Korea, South
MX|Mexico
NL|Netherlands
NZ|New Zealand
NO|Norway   
SG|Singapore
ES|Spain
CH|Switzerland
GB|United Kingdom
VE|Venezuela
00|Other

Sample basket.mth File (Method List):

Note that if you are going to be using InternetSecure, you must have an entry in this list that exactly matches the value you set in your config file for the CCM setting. Likewise if you are going to be using i-Check then you must have an entry in this list that exactly matches the ICM value in your config file.

credit card
i-check
cheque
money order

<< BACK



Page generation time: 0.02 seconds