Applet: uShopInput106

Description:
The uShopInput106 applet has two option lists and two quantity lists by which the current price is determined by multiplying the two quantity lists together with a base price. This is particularly useful when price is to be based on the square footage... where the square footage is determined by multiplying the width quantity by the length quantity.

Example:



<APPLET CODE="uShopInput106.class" CODEBASE="../classes/" WIDTH=450 HEIGHT=80>
<PARAM NAME="id"                 VALUE="P00122">
<PARAM NAME="name"               VALUE="Imported Rug">
<PARAM NAME="description"        VALUE="">
<PARAM NAME="weight"             VALUE="0">
<PARAM NAME="price_label"        VALUE="Total">
<PARAM NAME="price"              VALUE="$ 1.50">
<PARAM NAME="option1_label"      VALUE="Color 1">
<PARAM NAME="options1"           VALUE="Brown,Ivory,Navy,Charcoal,Black">
<PARAM NAME="option2_label"      VALUE="Color 2">
<PARAM NAME="options2"           VALUE="Red,Blue">
<PARAM NAME="quantity1_label"    VALUE="Width">
<PARAM NAME="quantity1"          VALUE="8">
<PARAM NAME="quantity2_label"    VALUE="Length">
<PARAM NAME="quantity2"          VALUE="10">
<PARAM NAME="classification"     VALUE="NONE">
<PARAM NAME="shipping_modifier"  VALUE="$0.00">
<PARAM NAME="taxable"            VALUE="YES">
<PARAM NAME="popup"              VALUE="NO">
<PARAM NAME="background_color"   VALUE="#B3D9FF">
<PARAM NAME="text_color"         VALUE="#000000">
</APPLET>


Parameters:

Name Description
codebase This parameter is actually part of the <APPLET> tag and therefore should be specified on the first line of the Applet (see example). It allows you to specify the location of this applet's class file. The recommended value is "../classes/". See codebase for more information.
id A unique ID for the product.
name The name of the product.
description A brief description of the product. (May be left blank or set to "NONE").
weight The weight of each square unit. The default value is "0".
price_label The label that appears on the applet next to the current price. A typical value might be "Total" or "Price".
price The price of the product. Note that the format of this price parameter may be either a single value such as "$19.95" or may be in the format of a quantity@price table such as "1 @ $50.00,2 @ $45.00,3 @ $40.00". See price parameter format for more information on quantity price tables.
option1_label The label that will appear next to the drop-down option list. A typical value might be "Color" or "Thickness" or "Type".
options1 The list of options associated with the item. Each option in the list should be separated by commas. Note that you can specify different prices for the options by using the "+" or "-" symbols. An example format is "gold,silver - $20.00,platinum + $50.00". See option parameter format for more information on options.
option2_label The label that will appear next to the second drop-down option list. A typical value might be "Color" or "Thickness" or "Type".
options2 The second list of options associated with the item. Each option in the list should be separated by commas. Note that you can specify different prices for the options by using the "+" or "-" symbols. An example format is "gold,silver - $20.00,platinum + $50.00". See option parameter format for more information on options.
quantity1_label The label that will appear next to the first quantity entry box. A typical value might be "Width" or "Depth".
quantity1 The initial quantity that will be displayed in the first quantity entry box. This can be any value such as "0", "1" or "100".
quantity2_label The label that will appear next to the second quantity entry box. A typical value might be "Length" or "Height".
quantity2 The initial quantity that will be displayed in the second quantity entry box. This can be any value such as "0", "1" or "100".
show_qty This parameter allows you to specify whether to display the quantity entry box or not. Valid values are "YES" or "NO". The default value is "YES".
classification The classification of a product. This allows you to assign the product to a specific class of products such as "MUSIC CDS" or "VIDEO TAPES" and will be used to relate similar products. Typically, this parameter is used in correlation with quantity&price tables or setting up discounts such as "All CDs are 25% Off". The default value is "NONE".
shipping_modifier This parameter allows you to assign a specific shipping cost modifier for this product. For example, if you want to charge an extra $2.00 to ship this item, then you could set this parameter to "$2.00". The default value is "$0.00".
taxable This parameter allows you to specify whether this item is taxable or not. Valid values are "YES" or "NO". The default value is "YES".
popup This parameter allows you to specify whether to display a message in a popup window whenever this item has been added to the shopping cart. Valid values are "YES" or "NO". The default value is "NO".
background_color The applet's background color. This value can be specified as an RGB value such as "#FFFFFF" or as one of the keyword colors such as "white". See color parameter format for more information on colors.
text_color The applet's text color. This value can be specified as an RGB value such as "#000000" or as one of the keyword colors such as "black". See color parameter format for more information on colors.
label This parameter allows you to specify the text that appears on the "Add" button's label. You can specify any text for this parameter. The default value is "ADD".