CurrencyInfoProviderGetFormattedPrice Method (Double, Int32, Boolean) |
Returns formatted price according to formatting string of the specified site main currency.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax public static string GetFormattedPrice(
double price,
int siteId,
bool encode = true
)
Parameters
- price
- Type: SystemDouble
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:
StringSee Also