Support

Home Forums Event Espresso Premium If 'Country Currency Code' is not set, EE4 uses USD regardless of other country

If 'Country Currency Code' is not set, EE4 uses USD regardless of other country

Posted: February 15, 2015 at 6:21 am

Viewing 4 reply threads


Ian Just

February 15, 2015 at 6:21 am

I wondered if setting ‘Country Currency Code’ to be blank would stop it displaying next to the price… no, it doesn’t. Instead, it makes the prices US dollars regardless of what other country details are set up.

WP 4.1, EE 4.6.6.p


Sidney Harrell

February 16, 2015 at 2:13 pm

We have created a developer ticket to add a filter to allow you to do this. Since it’s a relatively straightforward thing to add with no chance of introducing a regression bug, it should be added to the next minor point release.


Sidney Harrell

February 16, 2015 at 2:51 pm

Our developer came back and said that if you put ” ” in for the currency symbol, it should blank it out.
We’ll probably still put in a filter, so you could do it programmatically.


Ian Just

February 18, 2015 at 9:29 am

It’s the currency code that’s the issue – I’d like to be able to not have that displayed after the price (which should include the symbol).

You can’t make the currency code a space. If you try, it gets changed into a empty field, and suddenly everything is in USD, down to the $ currency symbol, again.

Now on EE 4.6.9.p.


Sidney Harrell

February 18, 2015 at 10:59 am

Sorry, the forum ate the html space code:
" "
If you put that in the currency symbol field in the admin, it will use an html space, instead of the funny character that results if you leave it blank, or use an actual space.
But to do what you want, to not display the country currency code, you’ll want to alter the template in modules/ticket_selector/templates/ticket_selector_chart.template.php on line 144, where it has the call
EEH_Template::format_currency( $ticket_price )
you’ll want to change it to
EEH_Template::format_currency( $ticket_price, FALSE, FALSE )
If you copy that template to uploads/espresso/templates before you alter it, your change will be preserved from updates to EE core.

Viewing 4 reply threads

The support post ‘If 'Country Currency Code' is not set, EE4 uses USD regardless of other country’ 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