Applet: uShopInput7

Description:
The uShopInput7 applet provides the ability to specify up to 15 lists of options to be associated with the item. The options will appear as drop-down lists from which the customer can select the desired options. Other features of this applet include an optional quantity-entry box and an option to display the current price of the item (based on options and quantity).

Example:


<APPLET CODE="uShopInput7.class" CODEBASE="../classes/" WIDTH=350 HEIGHT=500>
<PARAM NAME="id"                 VALUE="B00007">
<PARAM NAME="name"               VALUE="Computer">
<PARAM NAME="description"        VALUE="Desktop Computer">
<PARAM NAME="label1"             VALUE="CPU">
<PARAM NAME="option1"            VALUE="400 MHz,500 MHz + $50,600 MHz + $100">
<PARAM NAME="label2"             VALUE="Monitor">
<PARAM NAME="option2"            VALUE="15 inch,17 inch + $150,19 inch + $250,21 inch + $400">
<PARAM NAME="label3"             VALUE="Hard Drive">
<PARAM NAME="option3"            VALUE="4.5 GB IDE,10 GB IDE + $100,16 GB IDE + $140, 20 GB IDE + $200">
<PARAM NAME="label4"             VALUE="Video Card">
<PARAM NAME="option4"            VALUE="4 MB,8 MB + $50">
<PARAM NAME="label5"             VALUE="Video Card">
<PARAM NAME="option5"            VALUE="Standard,None - $50,Deluxe + $100">
<PARAM NAME="label5"             VALUE="Modem">
<PARAM NAME="option5"            VALUE="28.8,56K + $30">
<PARAM NAME="label6"             VALUE="Operating System">
<PARAM NAME="option6"            VALUE="Windows 98,Windows NT">
<PARAM NAME="label7"             VALUE="Software">
<PARAM NAME="option7"            VALUE="MS Office (SBD),None - $100,MS Office Prof + $100">
<PARAM NAME="label8"             VALUE="Warranty">
<PARAM NAME="option8"            VALUE="3 Year Warranty">
<PARAM NAME="label9"             VALUE="NONE">
<PARAM NAME="option9"            VALUE="NONE">
<PARAM NAME="label10"            VALUE="NONE">
<PARAM NAME="option10"           VALUE="NONE">
<PARAM NAME="label11"            VALUE="NONE">
<PARAM NAME="option11"           VALUE="NONE">
<PARAM NAME="label12"            VALUE="NONE">
<PARAM NAME="option12"           VALUE="NONE">
<PARAM NAME="label13"            VALUE="NONE">
<PARAM NAME="option13"           VALUE="NONE">
<PARAM NAME="label14"            VALUE="NONE">
<PARAM NAME="option14"           VALUE="NONE">
<PARAM NAME="label15"            VALUE="NONE">
<PARAM NAME="option15"           VALUE="NONE">
<PARAM NAME="weight"             VALUE="50">
<PARAM NAME="qty"                VALUE="1">
<PARAM NAME="show_qty"           VALUE="YES">
<PARAM NAME="price"              VALUE="$ 1400.00">
<PARAM NAME="show_price"         VALUE="YES">
<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.
label1 The label associated with option 1. If not used, leave field blank or set it to "NONE".
option1 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.
label2 - label15 These additional 14 option labels have the same format as label1.
option2 - option15 These additional 14 option lists have the same format as option1.
weight The weight of the product. The default value is "0".
qty The minimum quantity of this item that must be specified by the customer. If using the quantity entry box, this is also the default value that will appear in the quantity entry box. The default value for this parameter is "1".
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".
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.
show_price This parameter allows you to specify whether to display the current price (as it changes based on quantity and selected options). Valid values are "YES" or "NO". The default value is "NO".
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".
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".
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.