DiscountInfoProvider GetDiscounts Method (Int32, Boolean)Kentico 8.0 API Reference
Returns dataset of all discounts for specified site.

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

Parameters

siteId
Type: OnlineSystem Int32
Site ID
onlyEnabled (Optional)
Type: OnlineSystem Boolean
True - only enable discounts are returned. False - both enabled and disabled discounts are returned.

Return Value

Type: ObjectQuery DiscountInfo 
See Also