Click or drag to resize
CurrencyInfoProviderGetFormattedPrice Method (Decimal, Int32, Boolean)
Returns HTML encoded (depends on encode parameter) and formatted price according to CurrencyFormatString defined for specified site main currency.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
public static string GetFormattedPrice(
	decimal price,
	int siteId,
	bool encode = true
)

Parameters

price
Type: SystemDecimal
Price to be formatted
siteId
Type: SystemInt32
ID of the site which main currency has to be used for formatting
encode (Optional)
Type: SystemBoolean
Encode output

Return Value

Type: String
See Also