Click or drag to resize
EcommerceTransformationFunctionsGetSKUPriceSaving Method
Returns amount of saved money based on the difference between product seller price and product retail price or price before discount.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static double GetSKUPriceSaving(
	SKUInfo sku,
	bool discounts,
	bool taxes,
	string column1,
	string column2,
	bool percentage
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
SKU to calculate saving for
discounts
Type: SystemBoolean
Indicates if discounts should be applied to the seller price before the saved amount is calculated
taxes
Type: SystemBoolean
Indicates if taxes should be applied to both retail price and seller price before the saved amount is calculated
column1
Type: SystemString
Name of the column from which the seller price is retrieved, if empty SKUPrice column is used
column2
Type: SystemString
Name of the column from which the retail price is retrieved, if empty SKURetailPrice column is used
percentage
Type: SystemBoolean
True - result is percentage, False - result is in the current currency

Return Value

Type: Double
See Also