DiscountInfoProviderGetDiscounts Method (Int32, Boolean) |
Returns dataset of all discounts for specified site.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax public static ObjectQuery<DiscountInfo> GetDiscounts(
int siteId,
bool onlyEnabled = false
)
Parameters
- siteId
- Type: SystemInt32
Site ID - onlyEnabled (Optional)
- Type: SystemBoolean
True - only enable discounts are returned.
False - both enabled and disabled discounts are returned.
Return Value
Type:
ObjectQueryDiscountInfoSee Also