Problem with Checkout. "Billing Phone Required Field"

This topic has 21 replies, 5 voices, and was last updated 7 years, 3 months ago ago by Laranz

  • Avatar: marx213
    marx213
    Participant
    June 29, 2017 at 07:16

    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

    Please, contact administrator
    for this information.
    20 Answers
    Avatar: marx213
    marx213
    Participant
    June 29, 2017 at 12:07

    Is there anyone able to help me with this?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 29, 2017 at 14:43

    Hello,

    Sorry for the delay.
    You can try to use some plugin, for example, WooCommerce Checkout Manager.

    Regards,
    Rose Tyler.

    Avatar: samuraischwert
    samuraischwert
    Participant
    July 3, 2017 at 12:49

    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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 4, 2017 at 12:52

    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.

    Avatar: samuraischwert
    samuraischwert
    Participant
    July 5, 2017 at 09:21

    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

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 5, 2017 at 10:49

    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.

    Avatar: samuraischwert
    samuraischwert
    Participant
    July 5, 2017 at 11:44

    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

    Avatar: laranz
    Laranz
    Participant
    July 5, 2017 at 13:34

    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.

    Avatar: Seifenigel
    Seifenigel
    Participant
    July 5, 2017 at 17:45

    Hi everyone,

    I have exactly the same problem, non of the suggested solutions worked. I write this to recive follow-up emails.

    Avatar: laranz
    Laranz
    Participant
    July 5, 2017 at 20:03

    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.

    Avatar: Seifenigel
    Seifenigel
    Participant
    July 7, 2017 at 12:18

    Hey Larenz,

    sure! 🙂

    Please, contact administrator
    for this information.
    Avatar: laranz
    Laranz
    Participant
    July 7, 2017 at 13:33

    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.

    Avatar: Seifenigel
    Seifenigel
    Participant
    July 7, 2017 at 21:37

    I tried to, but there is no corrosponding string in the german .po-file, only in the original .pot-file.

    Avatar: samuraischwert
    samuraischwert
    Participant
    July 10, 2017 at 08:58

    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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 11, 2017 at 13:47

    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.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 11, 2017 at 13:54

    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.

    Avatar: samuraischwert
    samuraischwert
    Participant
    July 11, 2017 at 15:39

    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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 11, 2017 at 16:21

    Hello, @samuraischwert,

    You’re welcome!
    You will have to change the file again after the update.

    Regards,
    Rose Tyler.

    Avatar: samuraischwert
    samuraischwert
    Participant
    August 2, 2017 at 15:37

    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

    Avatar: laranz
    Laranz
    Participant
    August 2, 2017 at 16:24

    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.

  • Viewing 21 results - 1 through 21 (of 21 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.