Jump to content

Currency symbol in front, instead of abbreviation behind?


NeedCoffee

Recommended Posts

Posted

Have searched the forums and found someone asking this in 2016.

So instead of

150.00 GBP

...which isn't used here in the UK, we would have it display as...

£150.00

How can we do that?

Posted

Unfortunately the currency display is inconsistent in IPS. 

In different areas currencies are either displayed in symbols or in abbreviations (depends on where you are, frontend/backend/aso).

Afaik know, the currency display is hardcoded (for each location) and you can't set it globally.

This should be added in features & suggestions (was already reported in former topics, but didnt change since then)

Posted
12 hours ago, bfarber said:

The currency formatting is mostly handled by the locale in use, however there can be some exceptions. Where exactly do you see it not formatted in the manner you would like?

We're seeing this issue in Commerce. In the UK we always use £ instead of GBP and it should be in front (prefix) of the figure.

Where do we set the locale to ensure it uses the British formatting?

Posted

If the money_format() function is available in PHP (it is not available in some operating systems, such as Windows and at least some versions of BSD) AND the international currency symbol defined by the locale for the language pack in use matches the currency symbol defined in your Commerce currency configuration, money_format using %n should be used (which would typically produce a British pound symbol).

In AdminCP visit Customization > Languages and make sure when you edit the language pack you are using that the correct locale is defined (en_GB.UTF-8 most likely, but you may need to check with your host).

Posted

Thanks, changing the locale in the Admin CP > Languages > Edit Pen icon > English (United Kingdom) fixed it in most places. Hope that helps someone else in the future too :)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...