Get storefront language and currency
Ecwid.getStorefrontLang()
Ecwid.getStorefrontLang()
This method responds with the current storefront language in ISO 639-1 language code. Use it to dynamically translate custom content on the page.
Code example:
Ecwid.formatCurrency()
Ecwid.formatCurrency()
This method allows you to get store currency settings on the storefront. It is useful if you need to add a widget that displays some price to customers.
It accepts a numeric price as an argument and responds with a formatted price using store settings: currency symbol, and delimiter symbol and precision.
Code example:
Last updated
Was this helpful?