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.UIAssembly: CMS.Ecommerce.Web.UI (in CMS.Ecommerce.Web.UI.dll) Version: 11.0.0
Syntax 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:
DecimalSee Also