Support

Home Forums Event Espresso Premium Customizing currency display

Customizing currency display

Posted: April 17, 2014 at 3:47 am

Viewing 3 reply threads


Michel Leprêtre

April 17, 2014 at 3:47 am

Hi,
I would like to display prices like this : 100 € instead of EUR100, to respect french usage.
Any idea ?
Thanks !
Michel


Dean

April 17, 2014 at 4:21 am

Hello Michel,

In EE3, it is quite hard to manage as it requires editing numerous template files.

We realised that different countries use different currency formats, so in EE4 we have made it very easy and very flexible to change the format, from the settings page.

If you absolutely need it in EE3, then you will need to check each template file (event-espresso/templates) and look for $org_options[‘currency_symbol’] and shift it around the price as needed.

For example in event_list_display.php it has

<?php echo  $org_options['currency_symbol'].$event->event_cost; ?></p>

this could be changed to

<?php echo  $event->event_cost. ' ' . $org_options['currency_symbol']; ?></p>

It will still show EUR rather than € due to encoding issues. Again that has been changed in EE4, to respect currency symbols better.


Michel Leprêtre

April 17, 2014 at 5:58 am

Hello Dean,
I have to use EE3 because I need Calendar !

It’s too much work to change all templates, but I have used the solution found in
using ‘EUR ‘ replacement. So I get EUR 200, it’s better ! I tryed using ‘€ ‘ : it works, but Paypal gateway receive a wrong currency code !!!
Thanks anyway,
Michel


Michel Leprêtre

April 18, 2014 at 3:02 am

Hello Dean !

Do you plan to integer Calendar in EE4, which seams to be much flexible ?

Thanks,
Michel

Viewing 3 reply threads

The support post ‘Customizing currency display’ 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