MultiBuyDiscountsEvaluator FindItemsToBeDiscounted Method Kentico 8.1 API Reference
Finds items to be discounted with given discount based on given items. Returns true when at least one item was found.

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

Parameters

discount
Type: CMS.Ecommerce IMultiBuyDiscount
Discount to find suitable items for.
itemsToBaseDiscountOn
Type: OnlineSystem.Collections.Generic IDictionary ShoppingCartItemInfo, OnlineInt32 
Items used to satisfy discount condition.
itemsToBeDiscounted
Type: OnlineSystem.Collections.Generic IDictionary ShoppingCartItemInfo, OnlineInt32 
Items already found to be discounted with this discount.

Return Value

Type: OnlineBoolean
See Also