MultiBuyDiscountsEvaluatorCanBaseDiscountOn Method |
Checks if given item can be used to fulfill discounts conditions.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax 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:
BooleanReturns true if item covers (partially) discounts condition.
See Also