uShopInputMultiOption3_pg.class
The uShopInputMultiOption3 applet allows you to specify a product
with various priced option lists. Parameters allow you to specify the base
price of the product and up to 10 option lists for the product. Each option
in each list can have it's own price.
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 list should be in the
format: "Name,option=price,option=price,option=price" (that is,
the name of the option followed by any number of option=price
pairs). Negative prices are allowed. You can specify up to
10 different option lists - just be sure to separate each one
with a semicolon - Just see the example below on how to do this.
- 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".
- menutextcolor - The color of the text in the pull-down menus. 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".
- 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.
Note: Optional parameters are in italics
Example
<APPLET CODE = "uShopInputMultiOption3_pg.class" WIDTH=325 HEIGHT=550>
<PARAM NAME=id VALUE="CP0001">
<PARAM NAME=name VALUE="Pentium II">
<PARAM NAME=quantity VALUE="1">
<PARAM NAME=price VALUE="PTE1700.00">
<PARAM NAME=options VALUE="CPU,300 MHz=PTE0.00,350 MHz=PTE50.00,400 MHz=PTE100;
Monitor,15 in=PTE0.00,17 in=PTE100.00,21 in=PTE350.00;
Hard Drive,4.5 GB=PTE0.00,10 GB=PTE100.00,13 GB=PTE150.00,16 GB=PTE250.00;
Video Card,4 MB=PTE0.00,8 MB=PTE50.00;
Sound Card,Basic=PTE0.00,None=-PTE50.00,Deluxe=PTE100.00;
Modem,None=PTE0.00,56K=PTE75.00;
OS,Windows 98=PTE0.00;
Software,MS Office (SBD)=PTE0.00,None=-PTE100.00,MS Office Prof=PTE100.00;
Warranty,3-year=PTE0.00">
<PARAM NAME=weight VALUE="24">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=menutextcolor VALUE="black">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>