MultiBuyDiscountsEvaluator CanBaseDiscountOn Method Kentico 8.1 API Reference
Checks if given item can be used to fulfill discounts conditions.

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.
alreadyBasedOnItems
Type: OnlineSystem.Collections.Generic IDictionary ShoppingCartItemInfo, OnlineInt32 
Units with number of units already found as base for given discount.

Return Value

Type: OnlineBoolean
Returns true if item covers (partially) discounts condition.
See Also