ADDING MULTIPLE ITEMS AT A TIME

Features and Details of fillcart.exe

  • Allows submission of all the selected items on a page at once to the cart.
  • Fillcart.exe only works using the Form METHOD="POST". Each item can use dropdown menus (select), radio buttons, standard text input, checkboxes, or hidden type to specify the Mandatory 5 fields of Quantity, Price, ID value, Description, and Shipping for each item. The GET method is not supported.
  • Fillcart.exe supports the "Weight" Tag and all the Shipping & Handling and Sales Tax Methods.
  • Fillcart.exe is Database-compatible and can be used on pages generated from a database search.
fillcart.exe POST METHOD Example HTML

Below is an example of the structure of 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, and a tag to define the end of the form. Here is a line by line breakdown and some sample code:

<FORM METHOD="POST" ACTION="/cgi-bin/fillcart.exe">
<input type="hidden" name="ID_1001" value="SKU50513">
<input type="hidden" name="Price_1001" value ="5.50">
<input type="hidden" name="Desc_1001" value="Red Skateboard">
<input type="hidden" name="Shipping_1001" value="5.00">
<input type="text" name="Quan_1001" value="1">
<input type="hidden" name="weight_1001" value="2.25">
<input type="hidden" name="TAXABLE_1001" value="NO">

<input type="hidden" name="ID_1002" value="SKU50487">
<input type="hidden" name="Price_1002" value ="5.50">
<input type="hidden" name="Desc_1002" value="Blue Skateboard">
<input type="hidden" name="Shipping_1002" value="5.00">
<input type="text" name="Quan_1002" value="1">
<input type="hidden" name="weight_1002" value="2.25">
<input type="hidden" name="TAXABLE_1002" value="NO">

<input type="submit" name="Add to Cart">
</FORM>

Nextpage

You can specify an input for a nextpage. This will allow you to specify a special page that will appear and confirm that the item has been added to the cart.

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

Template

You can specify a template page to appear upon fillcart.exe submission. A template page can be a Total page or a Subtotal page where template values are pulled from the Shopping Cart.

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

Repeating Values

You will have for each product these 5 repeating values (ID, DESC, QUAN, SHIPPING, PRICE) specifically defined for each item. If you are using the Estimated Shipping Method you will also need the Weight Tag and value.

You might want to use a description instead of a product number to define your fieldnames. If the product you are selling is called "blue skateboard", you can define the values as follows:

ID_blueskateboard
DESC_blueskateboard
QUAN_blueskateboard
SHIPPING_blueskateboard
PRICE_blueskateboard
WEIGHT_blueskateboard
TAXABLE_blueskateboard

Note:The maximum fieldname value is 50 characters.

ID: Typically this will be the product number, SKU number, or can be used to set a product number and size. For each item this field must be present and be written as _ then the specific Number or Name to define the product associated with it.

PRICE: The selling price of the product. You can include tax and/or shipping in this amount or you can choose to add those values in with the shipping tag in fillcart.exe or on the subtotal page and add the tax in on the subtotal page. For each item this field must be present and be written as _ then the specific Number or Name to define the product associated with it.

DESC: The description of the product that will appear in the purchase email as well as on the total and subtotal pages. (Remember the max size is 50 characters.) For each item this field must be present and be written as _ then the specific Number or Name to define the product asoociated to it.

SHIPPING: The shipping value in fillcart.exe is multiplied by the QUAN value. If you wish to code a set rate of shipping no matter what the quantity, you can do so by making a product that is a shipping value, or by adding the shipping value on the subtotal page. The Shipping value can be setup as a radio button or drop-down list, and will allow the customer to choose the method of shipping desired. Another use of this field is as an additional charge for special packaging or delivery. For each item this field must be present and be written as _ then the specific Number or Name to define the product associated with it.

QUAN: This is the quantity of the item that a customer wishes to purchase. Quantity can be set by the customer with a checkbox, radio button, select (dropdown menu), text input or a textarea.

When the submit button is pressed, the browser submits all the values for each product on the page, and the buyer is then sent to the template or nextpage referenced in the opening form tag.