Click or drag to resize
SKUInfoProviderGetSKUFormattedPrice Method
Returns formatted product catalog price based on the SKU data and shopping cart data. Catalog discounts and/or taxes are included optionally. Result is in shopping cart currency.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static string GetSKUFormattedPrice(
	SKUInfo sku,
	ShoppingCartInfo cart,
	bool discounts,
	bool taxes,
	string column = null
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
SKU data
cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart data
discounts
Type: SystemBoolean
True - catalog discounts are applied to the price
taxes
Type: SystemBoolean
True - catalog taxes are applied to the discounted price
column (Optional)
Type: SystemString
Name of the column the price should be retrieved from. If empty, SKUPrice column is used.

Return Value

Type: String
See Also