ticket id in email looks bad

Home Forums Ticket Products Event Tickets Plus ticket id in email looks bad

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1200511
    Sergey
    Participant

    Hi, 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?

    #1201908
    Sergey
    Participant

    Hi, 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?

    #1202183
    Brook
    Participant

    Howdy 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

    #1202386
    Sergey
    Participant

    Hi 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.
    #1205440
    Brook
    Participant

    Oh that makes sense. Thanks for sharing the solution! I’ll pass it on to the devs.

    – Brook

    #1525559
    Barry
    Member

    Unfortunately 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.

    #1572135
    Victor
    Member

    Hi 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,
    Victor

    #1587744
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘ticket id in email looks bad’ is closed to new replies.