Click or drag to resize
ShoppingCartItemInfoProviderCalculateSubtotalDiscount Method
Calculates the subtotal of a single discount which is applied to all shopping cart item units altogether. 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 CalculateSubtotalDiscount(
	ShoppingCartItemInfo item,
	IItemDiscount discount,
	double unitDiscount
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Shopping cart item
discount
Type: CMS.EcommerceIItemDiscount
Data of the discount which was used for unit discount calculation
unitDiscount
Type: SystemDouble
Calculated unit discount

Return Value

Type: Double
See Also