ECommerceHelper GetDiscountValue Method (Double, IItemDiscount, Func Double, Double )Kentico 8.0 API Reference
Returns discount calculated from given price. Exchange rate applicator function will be applied if discount is global and flat.

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.
discount
Type: CMS.Ecommerce IItemDiscount
Discount to apply
exchangeRateApplicator
Type: OnlineSystem Func OnlineDouble, OnlineDouble 
Converts flat discount in global main currency to currency in which the price is expressed.

Return Value

Type: OnlineDouble
See Also