Checks if given item can be discounted using given discount.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- item
- Type: CMS.Ecommerce ShoppingCartItemInfo
Item to be checked.
- discount
- Type: CMS.Ecommerce IMultiBuyDiscount
Discount to be checked.
- basedOnItems
- Type:
System.Collections.Generic IDictionary ShoppingCartItemInfo,
Int32
Units with number of units found as base for given discount.
- alreadyDiscountedItems
- Type:
System.Collections.Generic IDictionary ShoppingCartItemInfo,
Int32
Units with number of units already found as suitable for given discount.
Return Value
Type:
Returns true if discount is applicable on given item.
See Also