The Custom field label is not support Traditional Chinese.

Home Forums Ticket Products Event Tickets Plus The Custom field label is not support Traditional Chinese.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1154173
    Yu Cheng
    Participant

    Hi,

    I am building a website for my client and the site language is in Traditional Chinese.

    I found that when the field label is in Traditional Chinese, the attendee information can not show in attendees table(Please see the attachments).

    Maybe this is related to the issue in this topic?

    • This topic was modified 9 years, 8 months ago by Yu Cheng. Reason: select forum to Event Ticket Plus
    #1154177
    Yu Cheng
    Participant

    BTW, I open Chrome developer tools and there is no javascript error.

    #1154628
    Cliff
    Member

    Hi, Yu Cheng. Thanks for your question and linking to that other thread.

    Does this sound like what you’re experiencing?

    I’ll document what I’m seeing when trying to recreate several broader problems being described by a customer:

    Was able to get the Bulgarian characters saving in Fieldset options, however upon purchasing a ticket, we’re unable to view the details of those fields for each attendee. Looking further, when viewing the source for those field labels, the classes are showing as “event-tickets-meta-data_%d0%ba%d0%be%d0%bd%d0%ba%d1%80%d0%b5%d1%82%d0%bd%d0%b8”. I believe the issue there is the root of the issue for not being able to see the values from those fields from the user submissions?
    The CSV Export of attendees has similar issues with the Bulgarian characters. The values exported aren’t readable or able to be used elsewhere.
    Some sample text and characters for testing:
    Разбрах, че за хубавите неща и за истинското познание е нужно търпение и постоянство.

    #1154636
    Yu Cheng
    Participant

    Yes, that looks like what I experienced.

    This is what I am doing:
    1.create a custom field for my ticket, and input Traditional Chinese in label field.
    2.A user inputs the required field and confirms RSVP on the event page
    3.The admin can see the basic information of the user’s submission in the attendees list table.
    4.The admin click “View Details”, and the text changes to “Hide Details”, but nothing shows below.

    This is what I input for the custom field.
    The label value:
    午餐
    The Option value:
    葷食
    素食

    Thanks for the support.
    Hope this can help you to figure it out what’s happening.

    #1155045
    Cliff
    Member

    Thanks for confirming. I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release.

    Please note that even if this thread gets closed due to inactivity (automatically happens after a couple weeks), this thread should still get a reply added if/when the fix is released.

    I apologize for this issue and appreciate your understanding and patience.

    #1156201
    Yu Cheng
    Participant

    Hi

    Is there any time frame for the release? Will this fix be included in the next release?
    Without this feature, I can not deliver the site to my client.

    If you need two weeks to fix this, I need to find some other solutions.

    Thank you.

    #1156367
    Cliff
    Member

    I’m having one of our developers take a closer look into this for you. Could you please run this database query and provide me the results? (read the notes in the code)

    https://gist.github.com/cliffordp/ee49abbf6eb79ccb73bd4251b5e20878

    Thank you.

    #1157363
    Yu Cheng
    Participant

    Hi Cliff,

    Thanks for your support.

    This is the screenshot of the result.
    https://gyazo.com/5418cfb4d84709bc33b4f5951664b9b7

    #1157870
    Cliff
    Member

    Hi. One of our developers is going to look for a snippetable solution so this issue can get fixed for you before we release it for everyone else via a plugin update.

    I’m expecting an answer by the end of this week.

    Thanks for your patience.

    #1158910
    Cliff
    Member

    Hi. Could you please try this code (added to a functionality plugin or your active child theme’s functions.php file)?

    /**
    * Helper to workaround unicode/encoding issues that can cause breakages in
    * relation to ticket meta field functionality.
    *
    * @see https://central.tri.be/issues/65385
    *
    * @param array $fields
    *
    * @return array
    */
    function ticket_meta_fields_char_encode_fix( array $fields ) {
    foreach ( $fields as &$field_object ) {
    $field_object->slug = urldecode( $field_object->slug );
    }
    
    return $fields;
    }
    
    add_filter( 'event_tickets_plus_meta_fields_by_ticket', 'ticket_meta_fields_char_encode_fix' );

    Please let me know if it was successful.

    Thank you.

    #1158925
    Yu Cheng
    Participant

    Hi Cliff,

    It works. Thank you so much!

    #1159020
    Cliff
    Member

    Great! Thanks for letting me know so quickly.

    We’ll leave this thread as Pending Fix.

    #1541372
    Victor
    Member

    Hi Yu Cheng!

    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-27-may-2018/

    We apologize for the long 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

    #1557282
    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 14 posts - 1 through 14 (of 14 total)
  • The topic ‘The Custom field label is not support Traditional Chinese.’ is closed to new replies.