Returns amount of saved money based on the difference between product seller price and product retail price or price before discount.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- sku
- Type: CMS.Ecommerce SKUInfo
SKU to calculate saving for
- discounts
- Type: System Boolean
Indicates if discounts should be applied to the seller price before the saved amount is calculated
- taxes
- Type: System Boolean
Indicates if taxes should be applied to both retail price and seller price before the saved amount is calculated
- column1
- Type: System String
Name of the column from which the seller price is retrieved, if empty SKUPrice column is used
- column2
- Type: System String
Name of the column from which the retail price is retrieved, if empty SKURetailPrice column is used
- percentage
- Type: System Boolean
True - result is percentage, False - result is in the current currency
Return Value
Type: DoubleSee Also