Applet: uShopCart1

Description:
The uShopCart1 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. Parameters allow you to configure the what fields are displayed in the cart as well as the actual widths of the fields. Configurable buttons on this applet also allow customers to remove items from the shopping cart.

Example:


<APPLET CODE="uShopCart1.class" CODEBASE="../classes/" WIDTH=500 HEIGHT=340>
<PARAM NAME="columns_id"                 VALUE="9">
<PARAM NAME="columns_name"               VALUE="16">
<PARAM NAME="columns_description"        VALUE="25">
<PARAM NAME="columns_weight"             VALUE="0">
<PARAM NAME="columns_quantity"           VALUE="6">
<PARAM NAME="columns_price"              VALUE="10">
<PARAM NAME="show_subtotal"              VALUE="YES">
<PARAM NAME="list_font_size"             VALUE="12">
<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_id The number of columns (or characters) allowed for product IDs. A typical value for this parameter is "9". If you do not want to display product IDs in the shopping cart at all, then set this value to "0".
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_description The number of columns (or characters) allowed per line for product Descriptions. The "per line" means that if the description is longer than this configured value, then the description will automatically be wrapped around onto the next line in the shopping cart. So in other words, you don't have to make this parameter too large. A typical value for this parameter might be "30". And note, if you don't want to display the description at all, then set this value to "0".
columns_weight The number of columns (or characters) allowed for product Weights. A typical value for this parameter is "6". If you do not want to display product weights in the shopping cart at all, then set this value to "0".
columns_quantity The number of columns (or characters) allowed for product Quantities. A typical value for this parameter is "6". If you do not want to display product quantities 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 to show the product subtotal in the cart. 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".
show_remove_all_button This parameter allows you to specify whether or not to show the "Remove All" 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".
remove_all_button_label This parameter allows you to specify the label that will appear on the "Remove All" button. You can specify any text string you want here. The default value is "Remove All".
center_buttons This parameter allows you to specify whether or not to center the remove buttons on the applet. Valid values are "YES" or "NO". The default value is "NO".
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.