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: 13.0.131
Syntax
C#
protected virtual bool CanBaseDiscountOn(
	MultiBuyItem item,
	IMultiBuyDiscount discount,
	ICollection<MultiBuyItem> itemsToBaseDiscountOn
)

Parameters

item
Type: CMS.EcommerceMultiBuyItem
Item to be checked.
discount
Type: CMS.EcommerceIMultiBuyDiscount
Discount to be checked.
itemsToBaseDiscountOn
Type: System.Collections.GenericICollectionMultiBuyItem
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