THE ONE-PAGE SHOPPING CART/ORDER FORM

ACTION="allinone.exe"

Features and Details of One-Page Shopping Cart

  • Great solution for single item order form.
  • With the use of Active X Controls, Java, JavaScript, and or VB Script can have features like auto tally of price, tax, and shipping values and form validation.
  • Can be used for both Internet Check and real-time Credit Card purchases.

In order to build an All-In-One one-page purchase form, you will need to create the following HTML pages and text files:

  1. The Order Form Page where the buyer fills out a form.
  2. checkorder.asp Tells the buyer the results of the transaction.
  3. approval.asp (optional) An optional page that will be displayed telling the buyer his order was approved, and detailing any further instructions/information.
  4. declined.asp (optional) An optional page that will be displayed telling the buyer his order was declined.
  5. orderinfoemail.txt (optional) A customization of the default email that is sent to the buyer and the merchant.
Instructions for the Order Form Page

POST METHOD

The structure of the Allinone.exe is much the same as the fillcart.exe form. As with all forms you will have an opening form tag defining the action that will take place, you will have various values set or preset within the form, a submit button, a reset button, and a tag to define the end of the form.

Here is a line by line breakdown and some sample code that shows what is required for allinone.exe:

<FORM METHOD="POST" ACTION="/cgi-bin/allinone.exe">

You must specify the location of the next page and decide if you need to use the Pay per download, checkorder.exe, or a simple transaction completed page.

<input type="hidden" name="nextpage" value="/nextpage.htm">

You must specify a template value instead of a nextpage value if you intend to show your customer their order number or plan to use checkorder.exe or Pay per Download.

<input type="hidden" name="template" value="\checkorder.htm">

Submit Button. You will need a submit button in the form so that when the values are acceptable to the customer they can submit the product to the Shopping Cart. The bottom of the page is the common place for the submit button, but it can be anywhere within the form and will submit the values as they are. For each item this field must be present and be written as _ then the specific Number or test to define that product attached to it.

<input type="submit" value="Purchase">

Close the form. You will need to add a close form tag: </FORM> after the last field for this item finish the allinone.exe product code.

When the Submit button is pressed the browser submits all the values for each product on the page so that each product specified within the form tags is then sent to the location mentioned in the opening form tag.

Here is an HTML example of a One-Page purchase form:

<html>
<head>
<title>Purchase Form</title>
<head>
<body>

Please fill out the form below in order purchase this item:

<FORM METHOD="POST" ACTION="/cgi-bin/allinone.exe">
<input type="hidden" name="template" value="\orderconfirmation.htm">
<input type="hidden" name="Total" value="50.00">
<input type="hidden" name="BothEmailNotifTemplate" value="\orderemail.txt">

First Name: <input type="text" name="TP_FIRSTNAME" size="20">
Last Name: <input type="text" name="TP_LASTNAME" size="20">
Email Address: <input type="text" name="TP_EMAIL" size="20">

Credit Card Number: <input type="text" name="TP_CC" size="20">
Expiration Date: <input type="text" name="TP_Exp" size="20">

<input type="submit" value="PURCHASE">

</body>
</html>

Please see our List of Fieldnames for a complete list of customer data fields. Please see the Appendix for drop-down lists of State Codes, Country Codes, and Credit card Expiration dates.

The BothEmailNotifTemplate referenced above is a custom email template is that sent out to both the buyer and the merchant at the time of purchase. This feature is optional, and is used to customize the default email sent out. You will need to FTP your text file to the server and reference its location in the line above. Please see Confirmation Email in the Order Confirmation section for further details.