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: 10.0.0
Syntax
C#
public virtual IEnumerable<IConditionalDiscount> Filter(
	IEnumerable<IConditionalDiscount> discounts,
	double priceLimit = -1
)

Parameters

discounts
Type: System.Collections.GenericIEnumerableIConditionalDiscount
Conditional discounts to be filtered.
priceLimit (Optional)
Type: SystemDouble
Only discounts with lower minimal amount than priceLimit will be left. Parameter is ignored when set negative.

Return Value

Type: IEnumerableIConditionalDiscount
See Also