uShopCart_it.class
The uShopCart applet allows you to add a "Shopping Cart" to your
web pages. The shopping cart lets your customers see the items which
they select. uShop has one shopping cart applet that
can be displayed in several different ways based on how big you want
it to appear and how many details you want to display for each
product. Available displays are: "FULL", "LARGE", "MEDIUM", "SMALL",
"NAMES", "COUNT", and "ICON". The default value is "ICON".
Parameters
- display
- "FULL" - Displays all details for each product (Id, Name, Description,
Weight, Quantity, and Price).
- "LARGE" - Displays Id, Name, Description, Quantity, and Price.
- "MEDIUM" - Displays Id, Name, Description, and Price.
- "SMALL" - Displays Name and Price.
- "NAMES" - Displays Name only.
- "COUNT" - Displays a count of the items in the cart.
- "ICON" - Just displays a uShop icon.
- money_sign - The sign that will be used to represent the currency.
Examples: "ITL", "#", "fr", "y". The default value is "ITL".
- 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".
- listcolor - The color inside the shopping cart. 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".
- textcolor - The color of the text inside the shopping cart. 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".
- fontsize - The size of the font in the cart. It is recommended to use
"10" or "12". The default value for the larger shopping carts
is "12" while the default value for the smaller shopping carts
is "10". This parameter has no effect on the "ICON" and "COUNT"
shopping cart views.
- removebutton - This optional parameter applies only to the "SMALL" and "NAMES"
versions of the shopping cart. It allows you to specify whether
to display a "REMOVE" button or not. If you want to display a
"REMOVE" button on the small shopping cart, set this parameter
to "YES". The default value is "NO".
- euro_rate - This optional parameter allows you to include the EURO total in
the shopping cart in addition to your normal currency total. See
Ref_EuroRaterParameter.html
for a full description of this parameter. Do not specify this
parameter at all if you don't want to display the EURO total.
Note: Optional parameters are in italics
Example 1 ("LARGE" Display Type)
<APPLET CODE = "uShopCart_it.class" WIDTH=500 HEIGHT=300>
<PARAM NAME=display VALUE="LARGE">
<PARAM NAME=money_sign VALUE="ITL">
<PARAM NAME=background VALUE="white">
<PARAM NAME=listcolor VALUE="white">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=fontsize VALUE="12">
<PARAM NAME=euro_rate VALUE="1936.27">
</APPLET>
Example 2 ("SMALL" Display Type)
<APPLET CODE = "uShopCart_it.class" WIDTH=165 HEIGHT=165>
<PARAM NAME=display VALUE="SMALL">
<PARAM NAME=money_sign VALUE="ITL">
<PARAM NAME=removebutton VALUE="NO">
<PARAM NAME=listcolor VALUE="white">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="white">
<PARAM NAME=fontsize VALUE="10">
<PARAM NAME=euro_rate VALUE="1936.27">
</APPLET>
Example 3 ("COUNT" Display Type)
<APPLET CODE = "uShopCart_it.class" WIDTH=50 HEIGHT=20>
<PARAM NAME=display VALUE="COUNT">
<PARAM NAME=money_sign VALUE="ITL">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=textcolor VALUE="black">
</APPLET>