Merchant OrderForm v1.52 Single Input ExamplesThe examples on this page show you how to use SINGLEPOST mode in Merchant OrderForm v1.52. This mode is used for collecting products from around your Web Site and keeping a Shopping Cart of items. Usually products are submitted one at a time from various pages around your site that display products and product information. Consult the page on OrderForm Examples if you want to use the OrderForm modes for MOF.
Here are two basic ways to have products put into the Merchant OrderForm v1.52 cart from various pages around your site using the Single Post method.
- Submit via Hidden Input, using Anchor or Get
- Submit via Form Post input
In order to adapt your Web Site pages to submit products to the Merchant OrderForm system, you should have some basic skill with constructing Forms in HTML. If you use a Web Page Editor like Front Page or Page Mill, then you should know how to use them to Construct Form Input.
This example page includes suggestions on how to use Links, Get, and Post directives to submit products from various pages around your Web Site. You can follow the examples in the underlying HTML syntax on this page to get you started. When you View the Source or HTML for this example page you will also see many Comments embedded around the input syntax. If you need help on the basics of building Forms in Web Pages, there are many free tutorials around the internet.
1. How To Submit via Hidden InputThis option sends predetermined information about a product to the MOF cart system. You can place these types of links to MOF from any page on your site, next to any products on your site. You cannot use this option if you want to allow customers to select types of information about the product, such as type, color, size, quantity, etc. Read the documentation section on Submitting Products via Hidden Input to review detailed instructions. You will be submitting 6 Fields of information under the name=order in these three examples.
- Send a product via a hyperlink anchor this way:
Order World Class BaseBall Cards Set of 14
- Use the same hyperlink method with a picture:
Tip: Hold your mouse pointer over the hyperlinks for example 1 or 2 above, and check out your browser's Status Bar at the bottom. You can see what's happening with this type of submission. Your product info is sent to the location of the MOF processing script as part of the line, and MOF processes anything past the ? mark.
2. How To Submit via Form PostThis option allows for various ways to accept user input on the product that will be sent to the MOF cart system. Important: Your configuration settings must match what you want to do with this kind of input. Make sure you understand the documentation on Configuring Form Post User Input Options to populate your site pages with this kind of input. That part of the documentation will tell you how your Form Input options must be identified in the MOF configuration file. If your Form Input is not identified exactly in the MOF configuration file then MOF will not know what kind of input and options it should be looking for.
This method also requires some "hidden" input. Read the Documentation or the comments in this underlying HTML to understand what "hidden" input is required.
A Submission from The Web World Hat Store
This example is used to submit a product appearing on a page of your Web Site to the MOF cart processing system. You must enclose this Form Input between the FORM POST tags. Two types of "hidden" input are required:
Note in this example that only 5 Fields are submitted under the name=order. The quantity is seperate input. You can include a "quantity" input box, or send quantity as hidden input. If you do not send "quantity" then MOF will default to one for quantity input.
You can add an unlimited number of options for your Product Input using "SINGLEPOST" mode, as long as you declare all your settings in the MOF configuration file.
The User Input Options will be added to the Description section for that product, and you can tell MOF which of these Options are required input. You can also tell MOF how to format your User Input when it appears in the Description Field of your product.
Grouping Submissions Together: The Web World Hat Store
This example follows the "SINGLEPOST" mode above for each item, but simply groups all the seperate POSTings together on one page. You probably don't want to go too far with this layout, before using one of the OrderForm Modes. The OrderForm layout may make more sense for grouping products.
The World Famous Propeller Hat The Industrial Work Hat The Hardy Caravan Hat
Copyright © Merchant OrderForm v1.52
All Rights Reserved, April 2000 by RGA
These programs may not be distributed without consent of owner.