ECommerceHelper ApplyDiscounts Method Kentico 8.0 API Reference
Applies given discounts to specified price. Reflects discounts ordering. Discount value is calculated using discountCalculator function.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

price
Type: OnlineSystem Double
Price to calculate discount from.
discounts
Type: OnlineSystem.Collections.Generic IEnumerable IItemDiscount 
Discounts to apply.
discountCalculator
Type: OnlineSystem Func OnlineDouble, IItemDiscount, OnlineDouble 
Function getting discount base price and discount object. Calculates resulting discount value.

Return Value

Type: OnlineDouble
See Also