Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1029515

    Hi,

    the datepicker values changes to NaN/NaN/NaN and user can send the form if using Google translator.
    NaN values

    How can we solve that?

    Thanks,
    Csaba.

    • This topic was modified 6 years, 1 month ago by Nagytalp.
    #1031029

    Hey Nagytalp,

    Can you please upload the image somewhere else, so we can be able to see it properly?

    Best regards,
    Basilis

    #1031624

    Hi Basilis,

    sure, here it is:

    View post on imgur.com

    To reproduce:
    Load the site first: https://hungarikumbisztro.hu/it/prenotazioni/
    Translate with Google to your language
    Pick a date from datepicker

    Sadly the user can send the whole form without date after that.
    We have around 20 problematic cases per day.

    Thanks,
    Csaba.

    • This reply was modified 6 years, 1 month ago by Nagytalp.
    #1032314

    Hi Nagytalp,

    Well, we cannot affect how Google translator changes the page or the date picker, unfortunately.

    Best regards,
    Victoria

    #1032594

    Hello Victoria,

    It’s weird because I can recreate the error every time.

    Ok., now finally I’m solved!

    ​
    //Disable Google translator
    add_action('wp_head', 'notranslate');
    function notranslate(){
    ?>
    <meta name="google" content="notranslate">
    <?php
    };
    

    This disables the translator on every page.

    Thanks,
    Csaba.

    #1033554

    Hi Nagytalp,

    Glad you got it working for you and thank you for sharing! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.