Hi,
the datepicker values changes to NaN/NaN/NaN and user can send the form if using Google translator.
How can we solve that?
Thanks,
Csaba.
Hey Nagytalp,
Can you please upload the image somewhere else, so we can be able to see it properly?
Best regards,
Basilis
Hi Basilis,
sure, here it is:
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.
Hi Nagytalp,
Well, we cannot affect how Google translator changes the page or the date picker, unfortunately.
Best regards,
Victoria
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.
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