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