uShopDiscount1_sp.class


The uShopDiscount1 applet provides a means by which to allow the store owner to offer discounts based on either the subtotal or as a percentage of the subtotal. By setting the discount "TYPE" to SUBTOTAL, the storeowner can offer discounts such as "Ptas20 off purchases of Ptas100 or more" or even "Ptas10 on purchases up to Ptas75 and Ptas25 for puchases over Ptas75". By setting the discount "TYPE" to PERCENT, the storeowner can offer discounts such as "Everything is 25% Off!".

Note that this applet requires no input on the part of the customer - just put the applet (which will appear as any image you want) on the page and when the customer views it, the discount will take effect.

Note that the "discount" field will not appear in the (large) shopping cart until the discount value is greater than zero. This means that if the discount is set to something like "Ptas100=Ptas20" (Ptas20 off purchases of Ptas100 or more), for example, then the discount line will not appear in the shopping cart until the customer orders Ptas100 worth of items.

Parameters
Note: The WIDTH and HEIGHT of the applet should match the size of the image that you specify.


Example



<APPLET CODE = "uShopDiscount1_sp.class" WIDTH=205 HEIGHT=190>
<PARAM NAME=image       VALUE="example_discount.gif">
<PARAM NAME=type        VALUE="SUBTOTAL">
<PARAM NAME=rate        VALUE="Ptas100=Ptas20">
</APPLET>