ProductDiscountsFilterFilter Method |
Filters given discounts and leaves only those which conditions are met.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntaxpublic virtual IEnumerable<IConditionalDiscount> Filter(
SKUInfo product,
IEnumerable<IConditionalDiscount> discounts
)
Parameters
- product
- Type: CMS.EcommerceSKUInfo
Object to be used for condition evaluation. - discounts
- Type: System.Collections.GenericIEnumerableIConditionalDiscount
Conditional discounts to be filtered.
Return Value
Type:
IEnumerableIConditionalDiscount
See Also