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.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax 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:
IEnumerableIDiscountSee Also