Click or drag to resize
MultiBuyDiscountsEvaluatorCanBaseDiscountOn Method
Checks if given item can be used to fulfill discounts conditions.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
protected virtual bool CanBaseDiscountOn(
	ShoppingCartItemInfo item,
	IMultiBuyDiscount discount,
	IDictionary<ShoppingCartItemInfo, int> alreadyBasedOnItems
)

Parameters

item
Type: CMS.EcommerceShoppingCartItemInfo
Item to be checked.
discount
Type: CMS.EcommerceIMultiBuyDiscount
Discount to be checked.
alreadyBasedOnItems
Type: System.Collections.GenericIDictionaryShoppingCartItemInfo, Int32
Units with number of units already found as base for given discount.

Return Value

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