Retrieve discounts that target a list of products or line items (CS2007)
Posted on GotDotNet
: 10/18/2006 11:37 AM
Commerce Server Version
: Commerce Server 2007
: Retrieve Discounts (CS2007)
This page demonstrates how you can obtain the list of discounts that target a particular product (or list of products).
It also demonstrates how you can get the discounts that target a list of line items. It is structured to work with the adventure works catalog, but can be easily adapted to work against any site catalog.
Note that this page runs the discount pipeline so it is considerably processor intensive. Building a caching layer for the discounts returned by this page would help making it more scalable.