IDiscountCalculateDiscount Method |
Calculates the discount value for given basePrice.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax decimal CalculateDiscount(
decimal basePrice
)
Parameters
- basePrice
- Type: SystemDecimal
The price to calculate discount from.
Return Value
Type:
DecimalRounded discount value.
Remarks
It is expected to return negative discount value for negative basePrice.
See Also