![]() | Welcome to Islandnet.com Locally owned and operated since 1993 |
| Create an Account • Pricing & Features • Domain Registration • Customer Sites • Help & Info | |
Friday May 16 2008 | |
Basket Order FormThe 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:
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:
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:
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!
Sample basket.cou File (Country List):NOTE: If you are submitting to InternetSecure, you MUST use this exact file!
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.
<< BACK |
| Home • About Us • Contact Us • Terms of Use • Privacy Policy • Help Documents |
| Page generation time: 0.02 seconds |