Click or drag to resize
SKUInfoProviderCalculateSKUTotalTaxFromDBInternal Method
Returns product total tax in site main currency based on the product data and the data of the shopping cart.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
protected virtual double CalculateSKUTotalTaxFromDBInternal(
	SKUInfo sku,
	ShoppingCartInfo cart,
	double priceAfterDiscount,
	SKUInfo parentSku = null
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
SKU data
cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart data
priceAfterDiscount
Type: SystemDouble
SKU price in main currency after discount the tax should be applied to
parentSku (Optional)
Type: CMS.EcommerceSKUInfo
The parent SKU for option(SKU) price calculation. Parent SKU taxes will be used.

Return Value

Type: Double
See Also