Click or drag to resize
ShoppingCartItemInfoProviderCalculateSubtotalTax Method
Calculates the subtotal of a single tax 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 CalculateSubtotalTax(
	ShoppingCartItemInfo item,
	IItemTax tax,
	double unitTax
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Shopping cart item
tax
Type: CMS.EcommerceIItemTax
Data of the tax which was used for unit tax calculation
unitTax
Type: SystemDouble
Calculated unit tax

Return Value

Type: Double
See Also