uShopInputVerticalQuantity.class
The uShopInputVerticalQuantity applet is the similar to the uShopInputStandard
applet except the layout is vertical rather than horizontal. It is ideal
for placement next to product images and/or whenever horizontal real estate
is limited. Like the uShopInputStandard applet, you can specify the
product's id, name, description, weight, price, and an optional choice menu.
In addition, you can specify an alignment parameter which can align each label
to the left, center, or right. Also this applet is identical to the uShopInputVertical
applet except that it also has a quantity entry box for ordering multiple items
at the same time.
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.
- price - The price of the product.
- 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".
- options - This optional parameter lets you specify a list of options from
which the customer can choose. Separate each item in the option
list with a comma. The default value is "NONE".
- 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".
- alignment - This parameter lets you specify whether to align the applet
labels to the "LEFT", "CENTER", or "RIGHT". The default value
is "LEFT".
- 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 1 (With "alignment" specified as "RIGHT")
<APPLET CODE = "uShopInputVerticalQuantity.class" WIDTH=100 HEIGHT=160>
<PARAM NAME=id VALUE="VQ0001">
<PARAM NAME=showid VALUE="YES">
<PARAM NAME=name VALUE="Wrapping Paper">
<PARAM NAME=description VALUE="25 sq. ft">
<PARAM NAME=options VALUE="snowman,santa,gifts,pattern">
<PARAM NAME=weight VALUE="0.5">
<PARAM NAME=price VALUE="£ 2.99">
<PARAM NAME=alignment VALUE="RIGHT">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>
Example 2 (With "alignment" specified as "LEFT")
<APPLET CODE = "uShopInputVerticalQuantity.class" WIDTH=100 HEIGHT=160>
<PARAM NAME=id VALUE="VQ0002">
<PARAM NAME=showid VALUE="YES">
<PARAM NAME=name VALUE="Picture Frame">
<PARAM NAME=description VALUE="5x7, wooden">
<PARAM NAME=options VALUE="NONE">
<PARAM NAME=weight VALUE="0.25">
<PARAM NAME=price VALUE="£ 6.99">
<PARAM NAME=alignment VALUE="LEFT">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=popupwindow VALUE="NO">
<APPLET>