Jaa


What Discounts Are Loaded Into the Discount Cache?

By default, the discount cache contains every discount that satisfies all the following criteria:

  • The parent customer of the discount is not archived or deleted.

  • The parent campaign of the discount is not archived or deleted.

  • The parent campaign of the discount is active.

  • The discount is not archived or deleted.

  • The discount is active.

  • The discount has started or will start in the next week.

  • The discount has not ended or has ended in the past one month.

After you call the CreateFromCache method the DiscountItemCollection class, your DiscountItemCollection object contains every discount in the discounts cache, according to the criteria that were discussed earlier.

After you create and initialize a DiscountCriteriaFilter object, and apply that filter to the DiscountItemCollection by calling its ApplyProductFilter method, the returned DiscountItemCollection object will only contain simple discounts that refer to a single product or category in the condition or award.

For more information about how to use these objects to display discounts for specific products, see How to Display Discounts for Specific Products.

See Also

Other Resources

Discounts and Promotion Codes

What Ads Are Loaded Into the Ad Cache?