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

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
IEnumerable<IDiscount> GetDiscounts(
	CalculatorData data,
	decimal orderAmount
)

Parameters

data
Type: CMS.EcommerceCalculatorData
Calculation data.
orderAmount
Type: SystemDecimal
Order amount which is used to filter applicable shipping discounts. (specified in the calculation currency)

Return Value

Type: IEnumerableIDiscount
See Also