@wocart/storefront / index / formatMoney
Function: formatMoney()
formatMoney(
amount,options):string
Format money amount with locale-aware formatting.
Parameters
amount
number
Amount in the platform currency's smallest whole unit (DZD)
options
Formatting options (symbol, locale, decimals)
Returns
string
Formatted money string
Example
Code
The symbol follows the amount in every language, as Algerian prices are written, joined by a no-break space so the two never wrap apart.