Kentico 12 Service Pack API Reference
Kentico 12 Service Pack API Reference
Namespaces
CMS Namespaces
CMS.Ecommerce Namespaces
CMS.Ecommerce
MultiBuyDiscount Class
MultiBuyDiscount Methods
AcceptsCoupon Method
Apply Method
CalculateDiscount Method
GetMissingProducts Method
IsApplicableOn Method
IsBasedOn Method
PrioritizeItems Method
MultiBuyDiscount
CalculateDiscount Method
Calculates the discount value for given
basePrice
.
Namespace:
CMS.Ecommerce
Assembly:
CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
Copy
public
decimal
CalculateDiscount
(
decimal
basePrice
)
Parameters
basePrice
Type:
System
Decimal
The price to calculate discount from.
Return Value
Type:
Decimal
Rounded discount value.
Implements
IDiscount
CalculateDiscount(Decimal)
See Also
Reference
MultiBuyDiscount Class
CMS.Ecommerce Namespace
Copyright (c) 2019 Kentico Software
Send comments on this topic to
support@kentico.com