Click or drag to resize
IItemDiscount.CalculateUnitDiscount Method
Calculates discount based on basePrice for given shoppingcart item.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
double CalculateUnitDiscount(
	ShoppingCartItemInfo item,
	double basePrice
)

Parameters

item
Type: CMS.Ecommerce.ShoppingCartItemInfo
Item to apply discount to.
basePrice
Type: System.Double
Base price to apply discount to. It is the item price with all previous discounts applied.

Return Value

Type: Double
See Also