Home > widget-integration > FilterHelper > formatCurrency
FilterHelper.formatCurrency() method
Formats a currency value according to shop settings
Signature:
formatCurrency(options: {
value: number | string | null | undefined;
showCurrencyCodes?: boolean;
showCentAsSuperscript?: boolean;
removeDecimalPoint?: boolean;
isPriceCompare?: boolean;
removePriceDecimal?: boolean;
}): string | null;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
{ value: number | string | null | undefined; showCurrencyCodes?: boolean; showCentAsSuperscript?: boolean; removeDecimalPoint?: boolean; isPriceCompare?: boolean; removePriceDecimal?: boolean; } |
Formatting options |
Returns:
string | null
Formatted currency string or null