Click or drag to resize
IDiscountCalculateDiscount Method
Calculates the discount value for given basePrice.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
decimal CalculateDiscount(
	decimal basePrice
)

Parameters

basePrice
Type: SystemDecimal
The price to calculate discount from.

Return Value

Type: Decimal
Rounded discount value.
Remarks
It is expected to return negative discount value for negative basePrice.
See Also