Support

Home Forums Event Espresso Premium How to remove 'C' from C$Price in Event Description (in EE3)

How to remove 'C' from C$Price in Event Description (in EE3)

Posted: August 10, 2014 at 6:08 pm

Viewing 2 reply threads


jackie neufeld

August 10, 2014 at 6:08 pm

Hi there,

I’m wondering if there is a way to remove the ‘C’ that appears before the event price (so instead of C$90 it is just $90), as all our prices are in Canadian and the vast majority of our customers are local so don’t need to be told prices are in Canadian. I’m assuming I have to edit ‘currency_symbol’ in event_list_display.php but am not sure what to change it to so it shows only a dollar sign.

Thanks!


Lorenzo Orlando Caum

  • Support Staff

August 10, 2014 at 6:16 pm

Try this in your child theme’s functions.php file or a site specific plugin:

function ee_replace_canadian_currency($content)
{
$content = str_replace('C$', '$',$content);
return $content;
}
add_filter('the_content','ee_replace_canadian_currency', 200);


Lorenzo


jackie neufeld

August 10, 2014 at 9:00 pm

Thanks that worked!

Viewing 2 reply threads

The support post ‘How to remove 'C' from C$Price in Event Description (in 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