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.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax 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:
ListIItemDiscountSee Also