Click or drag to resize
ShoppingCartInfoGetFormattedPrice Method (Double, Boolean)
Returns formatted price using the shopping cart currency formatting string.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public string GetFormattedPrice(
	double price,
	bool rounded
)

Parameters

price
Type: SystemDouble
Price to be formatted
rounded
Type: SystemBoolean
True - price is rounded using the shopping cart currency settings before formatting

Return Value

Type: String
See Also