Click or drag to resize
CurrencyInfoProviderGetRelativelyFormattedPrice Method (Decimal, CurrencyInfo, Boolean)
Returns HTML encoded (depends on encode parameter) and relatively formatted price according to CurrencyFormatString defined for currencyObj parameter.

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

Parameters

price
Type: SystemDecimal
Price to be formatted
currencyObj
Type: CMS.EcommerceCurrencyInfo
Currency which supplies formatting string
encode (Optional)
Type: SystemBoolean
Encode output

Return Value

Type: String
See Also