Home › Forums › Ticket Products › Event Tickets Plus › ticket id in email looks bad
- This topic has 6 replies, 4 voices, and was last updated 7 years, 9 months ago by
Sergey.
-
AuthorPosts
-
December 1, 2016 at 1:40 pm #1200511
Sergey
ParticipantHi, I have a small problem with Ticket ID in email containing tickets. It looks like “Ticket ID %%-1 ”
I think the reason is that the event title written in cyrillic. So, is there any way to fix it?
December 6, 2016 at 1:04 am #1201908Sergey
ParticipantHi, still need some help. Please tell me how the ticket_id genereted. Is this part of events tickets functionality or woocommerce or core wordpress functions?
December 6, 2016 at 9:55 am #1202183Brook
ParticipantHowdy Sergey,
My apologies, my original reply here got lost. That’s probably an indication that I closed my browser tab too quickly after clicking submit reply.
Thank you for working to isolate this issue. That is a bug in our plugin. I am sorry about the difficulty. It primarily manifests when the first word of every letter in the event is in a non-latin alphabet. So this went undetected for a while.
I have logged this bug. It is now in our queue, and will get fixed as soon as we have time. There are a few other bugs that affect more users, and they are naturally a bit higher priority. But this will be addressed in a future version of our plugins. When that version is ready for release we will notify you in this topic.
It might be possible to alleviate this issue while you wait for an official fix. Unfortunately I do not think changing the ID of currently issued events is a good idea. After looking at the code I am worried that if you change the ID of any ticket that is already purchased, it might have difficulty during checkin.
However, if you modify the following file in our plugins it might be enough to fix this for future events: /event-tickets/common/src/Tribe/Utils/Post_Root_Pool.php Open that up and scroll down to line 91. Change strtoupper to mb_strtoupper and then save the file. Now when you create a new event, and purchase a ticket to it, that might correct this issue for you. If not, we will just have to wait for an official fix from our devs.
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
December 6, 2016 at 6:15 pm #1202386Sergey
ParticipantHi Brook,
The place where the problem was hiding is correct, but single mb_strtoupper is not enough. 🙂
I end up with this:
protected function uc_first_letter( $string ) { $string = urldecode($string); return is_numeric( $string ) ? $string : mb_strtoupper( mb_substr($string, 0, 1, 'utf-8'), 'utf-8'); }Thank you for the help.
-
This reply was modified 9 years, 4 months ago by
Sergey.
December 13, 2016 at 10:37 am #1205440Brook
ParticipantOh that makes sense. Thanks for sharing the solution! I’ll pass it on to the devs.
– Brook
May 8, 2018 at 11:08 am #1525559Barry
MemberUnfortunately we haven’t yet been able to progress this issue, but we wanted to let you know it is still on our radar and we will aim to review it again in the near future.
July 10, 2018 at 3:24 pm #1572135Victor
MemberHi Sergey!
Just wanted to share with you that a new release of our plugins is out, including a fix for this issue 🙂
Find out more about this release → https://theeventscalendar.com/maintenance-release-for-the-week-of-9-july-2018/
Please also note that we have subsequently shipped a hotfix for The Events Calendar, Events Calendar PRO and Event Tickets → https://theeventscalendar.com/announcing-the-events-calendar-4-6-20-1-events-calendar-pro-4-4-29-1-and-event-tickets-4-7-5-1/
We apologize for the delay and appreciate your patience while we worked on this.
Please update the plugins and let us know if the fix works for your site.
Best,
VictorAugust 1, 2018 at 9:35 am #1587744Support 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 -
This reply was modified 9 years, 4 months ago by
-
AuthorPosts
- The topic ‘ticket id in email looks bad’ is closed to new replies.
