ECommerceHelper GetDiscountValue Method (Double, Double, Boolean)Kentico 8.1 API Reference
Returns discount calculated from the specified price.

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

Parameters

price
Type: OnlineSystem Double
Price from which the discount should be calculated
value
Type: OnlineSystem Double
Discount value
isFlat
Type: OnlineSystem Boolean
True - discount value is flat, False - discount value is relative

Return Value

Type: OnlineDouble
See Also