uShopInputMultiOption2_sp.class
The uShopInputMultiOption2 applet allows you to specify a product
with various priced options. Parameters allow you to specify the base
price of the product and up to 10 options for the product. You can
specify different names and different prices for each option. Note that
this applet is identical to the uShopInputMultiOption1 applet, except
all options are displayed vertically.
Parameters
- id - A unique id for the product. Can be up to 8 characters.
- name - The name for the product. Can be up to 15 characters.
- price - The base price of the products (before any options are selected).
- options - The list of options and prices from which the customer can
choose when ordering the product. Each option/price pair
must be in the format "option=price" (separated by an
equal sign). You can specify up to 10 option/price pairs,
just separate each item with a comma. (ie. "optionA=Ptas5.00,
optionB=Ptas10.00, optionC=Ptas15.00"). Both the option and the
price fields can be any number of characters.
- weight - The weight of the product. You only need to specify this if you
are using weight to calculate shipping. The default value is "0".
- quantity - The default quantity to be displayed in the quantity entry box.
- textcolor - The color of the applet's text. You can specify an
RGB value separated by commas ("integer,integer,integer" where
each integer is a value between 0 and 255) or specify one of
the predefined colors: white, black, lightGray, gray, darkGray,
red, green, blue, yellow, magenta, cyan, pink, and orange. The
default value is "black".
- background - The background color of the applet. You can specify an
RGB value separated by commas ("integer,integer,integer" where
each integer is a value between 0 and 255) or specify one of
the predefined colors: white, black, lightGray, gray, darkGray,
red, green, blue, yellow, magenta, cyan, pink, and orange. The
default value is "white".
- popupwindow - This parameter lets you specify whether you want a pop-up window
to be displayed each time an item is added to the shopping cart. This
pop-up window is useful if the store does not use FRAMES and does not
always display the shopping cart. Set this parameter to "YES" if you
want the pop-up window displayed.
- maxselections - This optional parameter allows you to specify the maximum number
of options that the customer can choose. For example, if you want to
allow the customer to "Select Any Three Options", then set this parameter
to "3". The default value is "NONE" - to indicate that there is no
limit to the number of options the customer can choose at once.
- minselections - This optional parameter allows you to specify the minimum number
of options that the customer must choose. For example, if you want to
allow the customer to "Select At Least Three Options", then set this parameter
to "3". The default value is "NONE" - to indicate that there is no
minimum number of options that the customer must choose.
Note: Optional parameters are in italics
Example
<APPLET CODE = "uShopInputMultiOption2_sp.class" WIDTH=250 HEIGHT=350>
<PARAM NAME=id VALUE="K0001">
<PARAM NAME=name VALUE="First Aid Kit">
<PARAM NAME=quantity VALUE="1">
<PARAM NAME=price VALUE="Ptas15.00">
<PARAM NAME=options VALUE="Alcohol Wipes (Ptas1.00)=Ptas1.00,
Cotton Balls (Ptas0.50)=Ptas0.50,
Elastic Bandages (Ptas2.00)=Ptas2.00,
Epsom Salts (Ptas0.50)=Ptas0.50,
Gauze Pads (Ptas0.75)=Ptas0.75,
Needles (Ptas1.00)=Ptas1.00,
Scissors (Ptas5.00)=Ptas5.00,
Tweezers (Ptas4.00)=Ptas4.00">
<PARAM NAME=weight VALUE="1">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=popupwindow VALUE="YES">
<PARAM NAME=maxselections VALUE="NONE">
<PARAM NAME=minselections VALUE="5">
</APPLET>