tribe_get_cost started returning currency symbol in wrong place

Home Forums Ticket Products Event Tickets Plus tribe_get_cost started returning currency symbol in wrong place

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1362233
    Kevin Morton
    Participant

    Hi Tribe,

    On my site, 2 template functions just started behaving differently after the most recent updates.

    tribe_get_cost() now incorrectly returns the currency symbol after the price (“199$” instead of “$199”) despite the setting “Currency symbol follows value” being unchecked.

    tribe_events_event_schedule_details() just stopped returning anything at all.

    Nothing changed on my end with the code or events, just the plugin updates.

    #1362573
    Patricia
    Member

    Hey Kevin,

    Thank you for reaching out to us!

    Unfortunately, this is an issue we are already aware of and the team will address it in a future maintenance release of our plugins.

    I will set this thread’s status to “Pending fix” and link it to the report so we can let you know as soon as a bugfix is released.

    In the meantime, we have a workaround that will force the currency symbol to always be before the price. You should place the following code snippet into your theme’s functions.php file:

    add_filter( 'tribe_reverse_currency_position', function(){ return null; } );

    I apologise for the inconvenience and we’d appreciate your patience.

    Thanks!

    Patricia

    #1362584
    Kevin Morton
    Participant

    Thanks very much Patricia, that’s good to know, and the patched worked fine for fixing tribe_get_cost().

    Any solution though to tribe_events_event_schedule_details() not returning anything anymore?

    #1363466
    Patricia
    Member

    Hi Kevin,

    I’m glad to hear that our patch helped you to fix the problem with the currency symbol!

    Regarding the problem with tribe_events_event_schedule_details, I’ve ran some tests and couldn’t reproduce the issue you are experiencing from here: this function is working as expected and returning the details of the start/end date/time.

    If you send me your code I can take a look and further investigate your case.

    Thanks!

    Patricia

    #1366825
    Victor
    Member

    Hi Kevin!

    Just wanted to share with you that a new maintenance release (for the Week of 16 October 2017) is out, including a fix for this issue 🙂

    Find out more about this release → https://theeventscalendar.com/maintenance-release-for-the-week-of-16-october-2017/

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Victor

    #1380635
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘tribe_get_cost started returning currency symbol in wrong place’ is closed to new replies.