CartDiscountsFilter Filter Method Kentico 8.0 API Reference
Filters given discounts and leaves only those which conditions and min amounts are met.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

discounts
Type: OnlineSystem.Collections.Generic IEnumerable IConditionalDiscount 
Conditional discounts to be filtered.
priceLimit (Optional)
Type: OnlineSystem Double
Only discounts with lower minimal amount than priceLimit will be left. Parameter is ignored when set negative.

Return Value

Type: OnlineIEnumerable IConditionalDiscount 
See Also