uShopInputPriceOption2_nw.class
The uShopInputPriceOption2 applet allows you to specify one list of
options/prices from which the customer can choose when buying the product.
Each option is associated with a price so that the price can change based
on which option is selected. This applet is identical to the
uShopInputPriceOption1 applet except applet also has a quantity entry box.
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.
- option1 - A 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 as many option/price pairs as you
like, just separate each item with a comma. (ie. "optionA=NOK5.00,
optionB=NOK10.00, optionC=NOK15.00"). The option field can be
up to 15 characters. The price field 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".
- showid - In order to save on screen real estate, you can set this
parameter to "NO". A value of "NO" means that the product's id
will not be displayed on the applet (only in the shopping cart).
The default value is "YES".
- fontsize - The size of the font in the option menu. It is recommended
to use "10" or "12".
- 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.
Note: Optional parameters are in italics
Example
<APPLET CODE = "uShopInputPriceOption2_nw.class" WIDTH=510 HEIGHT=35>
<PARAM NAME=id VALUE="PR0001">
<PARAM NAME=showid VALUE="YES">
<PARAM NAME=name VALUE="Necklace">
<PARAM NAME=option1 VALUE="silver=NOK60.00,gold=NOK90.00">
<PARAM NAME=weight VALUE="1">
<PARAM NAME=fontsize VALUE="12">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>