Home › Forums › Ticket Products › Event Tickets Plus › tribe_get_cost started returning currency symbol in wrong place
- This topic has 6 replies, 3 voices, and was last updated 8 years, 5 months ago by
Kevin Morton.
-
AuthorPosts
-
October 11, 2017 at 1:06 pm #1362233
Kevin Morton
ParticipantHi 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.
October 12, 2017 at 7:19 am #1362573Patricia
MemberHey 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
October 12, 2017 at 7:31 am #1362584Kevin Morton
ParticipantThanks 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?
October 13, 2017 at 1:42 pm #1363466Patricia
MemberHi 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
October 20, 2017 at 1:15 pm #1366825Victor
MemberHi 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,
VictorNovember 11, 2017 at 8:35 am #1380635Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘tribe_get_cost started returning currency symbol in wrong place’ is closed to new replies.
