Click or drag to resize
SKUInfoProviderCalculateSKUPriceAfterDiscountInternal Method
Calculates product price after all its catalog discounts are applied.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
protected virtual double CalculateSKUPriceAfterDiscountInternal(
	SKUInfo sku,
	ShoppingCartInfo cart,
	bool forCart,
	string column,
	SKUInfo parentSku = null,
	double customPrice = Není číslo
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
SKU data
cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart data
forCart
Type: SystemBoolean
True - This method is called within the shopping cart calculations, False - This method is called within the displaying price on the live site.
column
Type: SystemString
Name of the column from which the product price should be retrieved. If empty, SKUPrice column is used.
parentSku (Optional)
Type: CMS.EcommerceSKUInfo
The parent SKU for option(SKU) price calculation. Parent SKU discounts will be used.
customPrice (Optional)
Type: SystemDouble
If set, sku price is not taken from SKUInfo object.

Return Value

Type: Double
See Also