Click or drag to resize
IOrderDiscountSourceGetDiscounts Method
Returns the order discounts for the specified data grouped by their priority. Applied order discounts must be running, applicable for the given User and satisfy the discount conditions. Only order discounts satisfying the minimum order amount are returned.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
IEnumerable<DiscountCollection> GetDiscounts(
	CalculatorData data,
	decimal orderPrice
)

Parameters

data
Type: CMS.EcommerceCalculatorData
Calculation data.
orderPrice
Type: SystemDecimal
Order price which is used to filter applicable order discounts. (specified in the calculation currency)

Return Value

Type: IEnumerableDiscountCollection
See Also