Returns discount calculated from given price. Exchange rate applicator function will be applied if discount is global and flat.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- price
- Type: System Double
Price to calculate discount from.
- discount
- Type: CMS.Ecommerce IItemDiscount
Discount to apply
- exchangeRateApplicator
- Type: System Func Double, Double
Converts flat discount in global main currency to currency in which the price is expressed.
Return Value
Type: DoubleSee Also