Click or drag to resize
MultiBuyDiscountsApplicatorGetSavings Method
Returns discount saving for particular item.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
protected double GetSavings(
	IMultiBuyDiscount discount,
	ShoppingCartItemInfo item,
	int units,
	bool applyExchangeRate
)

Parameters

discount
Type: CMS.EcommerceIMultiBuyDiscount
Discount object
item
Type: CMS.EcommerceShoppingCartItemInfo
Discounted item
units
Type: SystemInt32
Discounted units count
applyExchangeRate
Type: SystemBoolean
Indicates if exchange rate from main currency is applied

Return Value

Type: Double
See Also