Click or drag to resize
ICatalogDiscountSourceGetDiscounts Method
Returns the catalog discounts collection which should be applied for the specified sku. Applied discounts must be running due to CalculationDate, applicable for the given User and satisfy the discount conditions.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
IEnumerable<DiscountInfo> GetDiscounts(
	SKUInfo sku,
	PriceParameters priceParams
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
The SKU to get discounts for.
priceParams
Type: CMS.EcommercePriceParameters
Product price calculation parameters

Return Value

Type: IEnumerableDiscountInfo
See Also