Click or drag to resize
ECommerceHelperGetDiscountValue Method (Double, Double, Boolean)
Returns discount calculated from the specified price.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static double GetDiscountValue(
	double price,
	double value,
	bool isFlat
)

Parameters

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

Return Value

Type: Double
See Also