Click or drag to resize
IDiscountApplicatorApplyDiscounts Method
Returns the application summary of the discountGroups when applied on the specified price.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
ValuesSummary ApplyDiscounts(
	decimal price,
	IEnumerable<DiscountCollection> discountGroups
)

Parameters

price
Type: SystemDecimal
Base price to apply discounts on.
discountGroups
Type: System.Collections.GenericIEnumerableDiscountCollection
Groups of discounts.

Return Value

Type: ValuesSummary
Remarks
Implementation handles the strategy of applying the multiple discounts.
See Also