Support

Home Forums Event Espresso Premium How do I set the currency to NGN?

How do I set the currency to NGN?

Posted: March 18, 2015 at 4:25 pm


Mr.P

March 18, 2015 at 4:25 pm

I am trying to set the country to Nigeria and currency to NGN in the general settings. But the ticket price always shows up in $. How Can I update this.


Dean

March 19, 2015 at 6:05 am

Hi,

EE3 will set an unknown currency to $ by default. The best way to handle a currency like this is via a small function:

function my_change_ee_currency( $content ) {
 
  global $org_options;
 
  $base = $org_options['currency_symbol'];
 
  $replace = '<span class="currency">NGN</span>';
 
  $content = str_replace( $base, $replace, $content );
 
  return $content;
 
}
 
add_filter( 'the_content', 'my_change_ee_currency', 11 );

That can be added to a Site Specific Plugin ( https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ ).

EE4 handles currencies via options, and provides a wider range of settings including symbol placement, decimal indicators, number of tailing digits, and more.

The support post ‘How do I set the currency to NGN?’ 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