Click or drag to resize
CartDiscountsFilterFilter Method
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: 12.0.0
Syntax
C#
public virtual IEnumerable<IConditionalDiscount> Filter(
	IEnumerable<IConditionalDiscount> discounts,
	[OptionalAttribute] decimal priceLimit
)

Parameters

discounts
Type: System.Collections.GenericIEnumerableIConditionalDiscount
Conditional discounts to be filtered.
priceLimit (Optional)
Type: SystemDecimal
Only discounts with lower minimal amount than priceLimit will be left. Parameter is expected to be in the main currency and is ignored when set negative.

Return Value

Type: IEnumerableIConditionalDiscount
See Also