Support

Home Forums Event Espresso Premium How to change the currency EE3

How to change the currency EE3

Posted: June 28, 2019 at 2:20 am


rhayward

June 28, 2019 at 2:20 am

I want to change the currency from $ to Indonesian rupiah (INR) or (Rp) I cant find a way to do this or switch the $ off.


Tony

  • Support Staff

June 28, 2019 at 4:53 am

Hi there,

Removing the currency symbol in EE3 requires multiple edits to the templates used throughout the plugin so it’s not easily done.

There is currently no currency set for Indonesia in EE so it defaults to $ and the only way to change that is to edit a core file:

\event-espresso\includes\organization_config.php

On line 117 should be:

case 'ARE' : $org_options['currency_symbol'] = 'AED';
    break;

Just after that, add:

case 'IDN' : $org_options['currency_symbol'] = 'AED';
    break;

So it looks like this:

case 'ARE' : $org_options['currency_symbol'] = 'AED';
    break;
case 'IDN' : $org_options['currency_symbol'] = 'AED';
    break;
case 'AUT' : case 'BEL' : case 'CYP' : case 'EST' : case 'FIN' : case 'FRA' : case 'DEU' : case 'GRC' : case 'IRL' : case 'ITA' : case 'LUX' : case 'LVA' : case 'MLT' : case 'NLD' : case 'PRT' : case 'SVK' : case 'SVN' : case 'ESP' : case 'AND' : case 'MCO' : case 'SMR' : case 'VAT' | 'MYT' : case 'MNE' : case 'XKV' : case 'SPM' : $org_options['currency_symbol'] = 'EUR'; // use the Euro for all eurozone countries

Then on Event Espresso -> General Settings, make sure Indonesia is selected as your country and save the settings, twice.

That should update EE to show ‘INR’.

Two notes about the above, not everywhere in EE may support that output and secondly, it’s editing a core file, so when EE3 updates you will need to redo the above.

EE4 was designed to allow you to customize the currency/symbol/location it is used much better than EE3 does, is there something preventing you from using EE4?

The support post ‘How to change the currency EE3’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso