ECommerceHelper GetDiscountValue Method (Double, Double, Boolean)Kentico 8.0 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.0.5239.26125)

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