Click or drag to resize
ShoppingCartItemInfoProviderCalculateUnitDiscount 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: 9.0.0
Syntax
C#
public static double CalculateUnitDiscount(
	ShoppingCartItemInfo item,
	IItemDiscount discount
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Shopping cart item
discount
Type: CMS.EcommerceIItemDiscount
Discount which should be applied to the shopping cart item

Return Value

Type: Double
See Also