This topic has 21 replies, 5 voices, and was last updated 7 years, 3 months ago ago by Laranz
Hello there,
I’ve tried my best to fix this issue myself, but I cannot. Using the legenda theme, with the checkout – My customers cannot continue their order without entering a phone number. While it’s not a problem as customers can simply enter a 1. This is something not permitted in Germany to do. Forcing a phone requirement is not legal.
I cannot find where to disable this function,
It’s on the “Checkout Page” when entering customer information.
Thanks
Marx
Is there anyone able to help me with this?
Hello,
Sorry for the delay.
You can try to use some plugin, for example, WooCommerce Checkout Manager.
Regards,
Rose Tyler.
Hello,
same problem here. Using the WooCommerce Checkout Manager plugin and changing the telephone field to “not required” didn’t change anything. Error message still appears. Do you have another idea how to solve it?
Thanks,
Jan
Hello, @samuraischwert,
Please try to activate Storefront theme – official WC theme and check if you have this issue with our theme only or even with official theme too. In case, the problem appears only with our theme provide wp-admin access in Private Content.
Regards,
Rose Tyler.
Hello Rose,
with Storefront activated, the telephone number isn’t required and everything works well.
I put the wp admin access in the private field.
Another short question: How can you translate the error messages that appear, when a customer didn’t fill out a form field such as telephone number? For example like this: https://prnt.sc/frtvfn
It’s not part of the .po file.
Thank you,
Jan
Hello,
Please read this topic https://www.8theme.com/topic/woocommerce-check-out-page/
Some texts were updated in new Woocommerce files, very likely you need to update wc translations. Please read this article http://betterwp.net/wordpress-tips/create-pot-file-using-poedit./ (“Updating a .po (and .mo) file”).
Also, don’t forget to backup all the files before any update.
Regards,
Rose Tyler.
Hello Rose,
changing the phone require to false in wp-content\plugins\woocommerce\includes\class-wc-countries.php as described in the other topic didn’t solve the problem unfortunately.
The text strings mentioned aren’t part of the woocommerce translation files located at /wp-content/languages/plugins. Where should else could they be updated?
Thanks,
Jan
Hi Sam,
Don’t edit the plugin file directly, use this to change the phone field to non-required,
add_filter( 'woocommerce_billing_fields', 'wc_npr_filter_phone', 10, 1 );
function wc_npr_filter_phone( $address_fields ) {
$address_fields['billing_phone']['required'] = false;
return $address_fields;
}
Add this in to your functions.php file in the Child theme, and then change this text “BILLING PHONE REQUIRED FIELD” in the .po file to an empty string using either POEdit or Loco Translate plugin, steps are here: https://www.8theme.com/demo/docs/royal/#!/1_how_to_translate
Let us know,
Thanks,
laranz.
Hi everyone,
I have exactly the same problem, non of the suggested solutions worked. I write this to recive follow-up emails.
Hi @Seifenigel,
Can you pass us the WP and FTP Login details in the Private Content, so that we can check what’s going wrong.
Let us know,
Thanks,
laranz.
Hey Larenz,
sure! 🙂
Hi,
Did you did this step?
and then change this text “BILLING PHONE REQUIRED FIELD” in the .po file to an empty string using either POEdit or Loco Translate plugin, steps are here: https://www.8theme.com/demo/docs/royal/#!/1_how_to_translate or https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/
I see that particular string is not translated. I will forward this issue to the developers in the mean time.
Let us know,
Thanks,
laranz.
I tried to, but there is no corrosponding string in the german .po-file, only in the original .pot-file.
Hello laranz,
I added the filter to the functions.php of the theme but the phone field is still required during checkout.
Regarding the translation of the error messages in the checkout, we have the same problem: There is no text string in the original pot file. Do you have news on how to fix that?
Best regards,
Jan
Hello, @samuraischwert,
I’ve commented this line http://prntscr.com/fuazvt in etheme.js file. Please check the phone now.
I’ve installed Loco Translate plugin. Please go to LT > Themes > Legenda and synchronize your translation http://prntscr.com/fub3wo and translate needed strings.
Regards,
Rose Tyler.
Hello, @Seifenigel,
Please try to comment this line http://prntscr.com/fuazvt in etheme.js file and synchronize the translation via Loco Translate plugin to get necessary lines.
Regards,
Rose Tyler.
Thank you Rose! All topics solved.
Will the change in etheme.js be part of the next update or will we have to change the file again after update?
Best regards,
Jan
Hello, @samuraischwert,
You’re welcome!
You will have to change the file again after the update.
Regards,
Rose Tyler.
Hello Rose,
unfortunately we cannot use the loco translate plugin anymore because it slowed down and finally crashed our site because of the incompatibility with “groups” plugin.
Is there another way how to translate the error strings in the checkout?
Best regards,
samuraischwert
Hi,
1. You can install the plugin, translate the strings, generate the .mo files, and you can deactivate the plugin, it won’t create any issues in that way.
OR
2. You can manually translate the strings using POEdit, or some of the tools noted in the codex, https://make.wordpress.org/polyglots/handbook/tools/other-translation-tools/
Let us know,
Thanks,
laranz.
You must be logged in to reply to this topic.Log in/Sign up