MultiBuyDiscountsEvaluator CanBeDiscounted Method Kentico 8.1 API Reference
Checks if given item can be discounted using given discount.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

item
Type: CMS.Ecommerce ShoppingCartItemInfo
Item to be checked.
discount
Type: CMS.Ecommerce IMultiBuyDiscount
Discount to be checked.
basedOnItems
Type: OnlineSystem.Collections.Generic IDictionary ShoppingCartItemInfo, OnlineInt32 
Units with number of units found as base for given discount.
alreadyDiscountedItems
Type: OnlineSystem.Collections.Generic IDictionary ShoppingCartItemInfo, OnlineInt32 
Units with number of units already found as suitable for given discount.

Return Value

Type: OnlineBoolean
Returns true if discount is applicable on given item.
See Also