ECommerceHelperGetDiscountValue Method (Double, Double, Boolean) |
Returns discount calculated from the specified price.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax 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:
DoubleSee Also