THE ONE-PAGE SHOPPING CART/ORDER FORM
|
ACTION="allinone.exe" Features and Details of One-Page Shopping Cart
In order to build an All-In-One one-page purchase form, you will need to create the following HTML pages and text files:
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:
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.
|