RenderDiscounts - Solution Sites Routine

This function prepares the HTML that will render discount banners, typically in the content area associated with the content variable htmDiscountBannerSlot. The content is produced by calling the GetContent method of a ContentSelector object created within the function.

This function uses the two passed SimpleList objects, BasketDetails and ProductDetails, to give affinity to discounts that are completed by items in the basket, or to items that are shown on the page, respectively.

Definition

Function RenderDiscounts(
  ProductDetails,
  BasketDetails,
  nDiscountsToShow)

Parameters

  • ProductDetails
    When present, a SimpleList object assigned to a property of the ContentSelector object named "Products".
  • BasketDetails
    When present, a SimpleList object assigned to a property of the ContentSelector object named "Items".
  • nDiscountsToShow
    A number specifying the number of discounts to show, assigned to a property of the ContentSelector object named "NumRequested".

Return Value

A string containing the HTML that will result in the rendering of the appropriate discounts, typically within the content area associated with the content variable htmDiscountBannerSlot.

Defined in File

template\discount.asp

Routines Called

GetCurrentUserProfile

Called By

Main (product.asp)

RenderBasketPage

Remarks

The parameters ProductDetails and BasketDetails, when present, provide information to the associated Content Selection pipeline. This pipeline uses this information to propose discounts related to products being shown on the current page, or items currently in the basket, respectively.

Copyright © 2005 Microsoft Corporation.
All rights reserved.