Applet: uShopCart2

Description:
The uShopCart2 applet is a shopping cart applet that can be added to any page in order to display the current contents of the shopping cart. Each time an item is added to the cart, this applet will automatically be updated. This applet is similar to uShopCart1 applet, except this applets has been optimized for being used a small shopping cart. That is, it only displays the Name and Price.

Example:


<APPLET CODE="uShopCart2.class" CODEBASE="../classes/" WIDTH=170 HEIGHT=190>
<PARAM NAME="columns_name"               VALUE="16">
<PARAM NAME="columns_price"              VALUE="10">
<PARAM NAME="show_subtotal"              VALUE="YES">
<PARAM NAME="show_remove_button"         VALUE="NO">
<PARAM NAME="list_font_size"             VALUE="10">
<PARAM NAME="list_text_color"            VALUE="black">
<PARAM NAME="list_background_color"      VALUE="white">
<PARAM NAME="background_color"           VALUE="#B3D9FF">
</APPLET>


Parameters:

Name Description
codebase This parameter is actually part of the <APPLET> tag and therefore should be specified on the first line of the Applet (see example). It allows you to specify the location of this applet's class file. The recommended value is "../classes/". See codebase for more information.
columns_name The number of columns (or characters) allowed for product Names. A typical value for this parameter is "16" - but you can increase this to whatever size you want (just don't forget to increase the applet WIDTH too!). If you do not want to display product Names in the shopping cart at all, then set this value to "0".
columns_price The number of columns (or characters) allowed for product Prices. A typical value for this parameter is "10". If you do not want to display product prices in the shopping cart at all, then set this value to "0".
show_subtotal This parameter allows you to specify whether or not to display the subtotal in the cart or not. Valid values are "YES" or "NO". The default value is "YES".
show_remove_button This parameter allows you to specify whether or not to show the "Remove" button on the shopping cart. Valid values are "YES" or "NO". The default value is "YES".
remove_button_label This parameter allows you to specify the label that will appear on the "Remove" button. You can specify any text string you want here. The default value is "Remove".
list_font_size This parameter allows you to specify the size of the courier font. The recommended values are "10" or "12".
list_text_color The text color of the product list. This value can be specified as any RGB value such as "#000000" or as one of the keyword colors such as "black". See color parameter format for more information on colors.
list_background_color The shopping cart's background color (of the list). This value can be specified as any RGB value such as "#FFFFFF" or as one of the keyword colors such as "white". See color parameter format for more information on colors.
background_color The applet's background color. This value can be specified as any RGB value such as "#FFFFFF" or as one of the keyword colors such as "white". See color parameter format for more information on colors.