DiscountInfoProviderGetRunningDiscounts Method |
Gets running discounts on given sites in defined time. If discount uses coupons, only discounts with usable coupons are returned.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax public static ObjectQuery<DiscountInfo> GetRunningDiscounts(
SiteInfoIdentifier site,
DateTime date,
Nullable<DiscountApplicationEnum> discountApplicationEnum = null
)
Parameters
- site
- Type: CMS.DataEngineSiteInfoIdentifier
Site to get active discounts for. - date
- Type: SystemDateTime
Time when discount should be active. - discountApplicationEnum (Optional)
- Type: SystemNullableDiscountApplicationEnum
Type of discount which will be selected. If null all types are selected.
Return Value
Type:
ObjectQueryDiscountInfoSee Also