Click or drag to resize
MultiBuyDiscountsEvaluatorFindItemsToBeDiscounted Method
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: 9.0.0
Syntax
C#
protected virtual bool FindItemsToBeDiscounted(
	IMultiBuyDiscount discount,
	IDictionary<ShoppingCartItemInfo, int> itemsToBaseDiscountOn,
	IDictionary<ShoppingCartItemInfo, int> itemsToBeDiscounted
)

Parameters

discount
Type: CMS.EcommerceIMultiBuyDiscount
Discount to find suitable items for.
itemsToBaseDiscountOn
Type: System.Collections.GenericIDictionaryShoppingCartItemInfo, Int32
Items used to satisfy discount condition.
itemsToBeDiscounted
Type: System.Collections.GenericIDictionaryShoppingCartItemInfo, Int32
Items already found to be discounted with this discount.

Return Value

Type: Boolean
See Also