About the Discounts Feature for Solution Sites
The discount feature displays discounts to users based on user profile properties, items that are in the user's basket, the product the user is viewing, or other properties.
There are two types of discount displays—the discount banner display and the discount information in the user's basket.
In the Solution Sites implementation, discount banners are placed on the bottom of a Web page. The discounts can be automatic or click-required. Click-required discounts require that the user click the discount banner to receive the discount. Automatic discounts do not require any user interaction; the discount is automatically applied to the user's basket.
Discount information that you want to include in the user's basket is displayed on the basket.asp page. When the user receives a discount the basket.asp page automatically adds two columns to the basket table. One column lists the discount in a price value; the other column lists any messages associated with the discount.
Initialization
Initialization for the discount feature occurs in the following files:
include\global_csf_lib.asp
Initializes the Content Selection Framework (CSF), and creates the global context for CSF discounts.
include\global_cache_lib.asp
Creates and configures the discount cache.
include\setupenv.asp
This file is used to set up environment variables and retrieve information about the user.
Browse Time
The following files display the discount feature:
template\discount.asp
Selects and renders discount banners.
basket.asp
Includes the template\discount.asp page and calls its RenderDiscounts function, storing the results in the htmDiscountBanner variable. The basket.asp page also displays the price reduction associated with any applied discounts and a discount message.
product.asp
Includes the template\discount.asp page and calls its RenderDiscounts function storing the results in the htmDiscountBanner variable.
redir.asp
Handles click-throughs and other events on marketing campaign items. It invokes a pipeline that records the events in memory and to the Internet Information Services (IIS) log file.
summary.asp
Computes the discounts and displays the adjusted prices in addition to the bill-to address, ship-to address, the basket, and the order total.
template\layout1.asp
Calls the Response.Write function on the htmDiscountBanner variable, which is populated in the Main function on pages that want to display discount banners.
See Also
About the Basket Feature for the Solution Sites
Page Layout Customization for Solution Sites
Copyright © 2005 Microsoft Corporation.
All rights reserved.