Click or drag to resize
SKUInfoProviderGetSKUDiscountsInternal Method
Returns list of catalog discounts which should be applied to the given product based on the product data and shopping cart data.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
protected virtual List<IItemDiscount> GetSKUDiscountsInternal(
	SKUInfo sku,
	ShoppingCartInfo cart,
	bool forCart
)

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.

Return Value

Type: ListIItemDiscount
See Also