uShopInputText2_dn.class
The uShopInputText2 applet is similar to the uShopInputText1
applet except that it also has one configurable option list in addition
to the text entry box. This allows you to give the customers one option
to choose from (such as size or color) along with the customizable
text entry. Note that the total number of characters of the selected
option and the text entry box cannot excede 26. That is, 26 characters
total is the max the shopping cart will allow for the description field.
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 from which the customer can choose when
ordering the product. You can specify as many options in
the list as you like, but each option must be separated by
a comma. (ie. "optionA,optionB,optionC,optionD"). Note:
the total length of this option field and the text that the
customer enters is limited to 26 characters - so it is
recommended to keep these options to under 10 characters.
- label - This parameter allows you to configure the label next to
the text entry box.
- price - The price per each unit bought.
- showprice - This parameter allows you to specify whether to show the
price on the applet or not. That is, to save horizontal
realestate, you may wish to set this parameter to "NO". The
default value is "YES".
- quantity - The default quantity to be displayed in the quantity entry box.
- 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".
- 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 = "uShopInputText2_dn.class" WIDTH=520 HEIGHT=35>
<PARAM NAME=id VALUE="T00002">
<PARAM NAME=option1 VALUE="Red,Blue,White,Green">
<PARAM NAME=name VALUE="T-Shirt">
<PARAM NAME=label VALUE="Name: ">
<PARAM NAME=weight VALUE="0">
<PARAM NAME=quantity VALUE="1">
<PARAM NAME=price VALUE="KR 15.00">
<PARAM NAME=showprice VALUE="NO">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>