Click or drag to resize
ShoppingCartItemInfoProviderCalculateUnitDiscountInternal Method
Calculates single discount which is applied to one shopping cart item unit. Result is in site main currency.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
protected virtual double CalculateUnitDiscountInternal(
	ShoppingCartItemInfo item,
	IItemDiscount discount,
	double basePrice = 0
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Shopping cart item
discount
Type: CMS.EcommerceIItemDiscount
Discount which should be applied to the shopping cart item
basePrice (Optional)
Type: SystemDouble
Price to apply discount to.

Return Value

Type: Double
See Also