uShopInputQuantityPrice1_fn.class
The uShopInputQuantityPrice1 applet allows you to specify a
list of quantities and prices from which the customer can choose
when buying the product. This ideal for products that have different
prices based on how may are bought.
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.
- description - A brief description of the product. Can be up to 26 characters.
- qty_price - The list of quanties and prices from which the customer can
choose. The format used to specify a price for a certain
quantity is "quantity@price". You can specify as many
quantity@price options in the list as you like, but each option
must be separated by a comma.
Example: "1@FIM5.00,2@FIM4.50,5@FIM4.00,10@FIM2.00" which can be
interpreted as you can buy 1 item at FIM5.00, or 2 items at
FIM4.50 each, or 5 items at FIM4.00 each, or 10 items at FIM2.00 each.
- 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".
- 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 = "uShopInputQuantityPrice1_fn.class" WIDTH=500 HEIGHT=35>
<PARAM NAME=id VALUE="N00004">
<PARAM NAME=showid VALUE="YES">
<PARAM NAME=name VALUE="Golf balls">
<PARAM NAME=description VALUE="Official">
<PARAM NAME=weight VALUE="0">
<PARAM NAME=qty_price VALUE="1 @ FIM1.00,5 @ FIM0.75,10 @ FIM0.50,24 @ FIM0.30">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>