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 for the discount feature occurs in the following files:
Initializes the Content Selection Framework (CSF), and creates the global context for CSF discounts.
Creates and configures the discount cache.
This file is used to set up environment variables and retrieve information about the user.
The following files display the discount feature:
Selects and renders discount banners.
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.
Includes the template\discount.asp page and calls its RenderDiscounts function storing the results in the htmDiscountBanner variable.
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.
Computes the discounts and displays the adjusted prices in addition to the bill-to address, ship-to address, the basket, and the order total.
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 AlsoCopyright © 2005 Microsoft Corporation.
All rights reserved.