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.Web.UI
Assembly: CMS.Ecommerce.Web.UI (in CMS.Ecommerce.Web.UI.dll) Version: 12.0.0
Syntax
C#
public static decimal GetSKUPriceSaving(
	SKUInfo sku,
	bool percentage
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
SKU to calculate saving for
percentage
Type: SystemBoolean
True - result is percentage, False - result is in the current currency

Return Value

Type: Decimal
See Also