DiscountInfoProvider GetRunningDiscounts Method Kentico 8.1 API Reference
Gets running discounts on given sites in defined time. If discount uses coupons, only discounts with usable coupons are returned.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

site
Type: CMS.DataEngine SiteInfoIdentifier
Site to get active discounts for.
date
Type: OnlineSystem DateTime
Time when discount should be active.
discountApplicationEnum (Optional)
Type: OnlineSystem Nullable DiscountApplicationEnum 
Type of discount which will be selected. If null all types are selected.

Return Value

Type: ObjectQuery DiscountInfo 
See Also