Click or drag to resize
SKUInfoProviderCalculateSKUDiscountInternal Method
Calculates specified catalog discount which should be applied to the given product. Result is in site main currency.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
protected virtual double CalculateSKUDiscountInternal(
	SKUInfo sku,
	ShoppingCartInfo cart,
	IItemDiscount discount,
	double priceAfterDiscount
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
SKU data
cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart data
discount
Type: CMS.EcommerceIItemDiscount
Discount data
priceAfterDiscount
Type: SystemDouble
SKU price after previous discounts

Return Value

Type: Double
See Also