Support » Plugin: F4 Shipping Phone and E-Mail for WooCommerce » Phone Number Not Showing

Viewing 12 replies - 16 through 27 (of 27 total)
  • Plugin Author F4

    (@faktorvier)

    If its displayed 2 times now then you would actually not need the code from above, because it should be already displayed by default. Are you sure the phone number was missing? That actually can’t be. The second phone number comes from the new WooCommerce 5.6 version and the first one from our plugin. If you don’t use the code from above then the first one should be gone and only the second one should be displayed. If you remove the code add_filter('F4/WCSPE/append_phone_field_to_formatted_address', '__return_true'); again and BOTH phone numbers are missing, then you theme or template file seem to be configured wrong. In that case we can’t help you and you should contact the responsible developer for this website. This person can help you better.

    Thread Starter anish12345

    (@anish12345)

    I am already checked with this CSS but when I am applying this code also remove phone number from billing address.

    .woocommerce-customer-details–phone{ display:none}

    Plugin Author F4

    (@faktorvier)

    You cant use .woocommerce-customer-details–phone{ display:none}. That will remove BOTH billing AND shipping phone. If you don’t use this CSS and remove add_filter('F4/WCSPE/append_phone_field_to_formatted_address', '__return_true'); again from your functions.php, then everything sould be fine. Because thats the normal behaviour after WooCommerce 5.6. It thats not the case, you REALLY should contact your developer to help you.

    Thread Starter anish12345

    (@anish12345)

    But when I am remove this code also mobile number remove from email.

    Plugin Author F4

    (@faktorvier)

    And you have removed de CSS .woocommerce-customer-details–phone{ display:none} as well?

    Thread Starter anish12345

    (@anish12345)

    Yes, I have already removed.

    But when I am added this code mobile number showing 2 times in shipping address.

    add_filter(‘F4/WCSPE/append_phone_field_to_formatted_address’, ‘__return_true’);

    When I am removed this code mobile number showing in one time but order email shipping address not showing mobile number.

    Plugin Author F4

    (@faktorvier)

    Looks like your template files have wrong code or you use other hooks that may cause problems with this new WooCommerce version 5.6. You have to contact your developer or hire/ask one that can help you better with this individual problem.

    Thread Starter anish12345

    (@anish12345)

    It’s already resolved.

    Plugin Author F4

    (@faktorvier)

    Very good. If you have a solution you can post it here, it may help other users.

    Thread Starter anish12345

    (@anish12345)

    Sorry, I can’t post. Because I am learning and find the solution.

    If anyone want help they are learning and find the solution.

    That’s all.

    • This reply was modified 5 months ago by anish12345.

    I have the same problem and, for anyone coming after, the solution by @faktorvier worked for me …

    add_filter(‘F4/WCSPE/append_phone_field_to_formatted_address’, ‘__return_true’);

    To avoid having to edit the functions.php file, I created a snippet (using https://wordpress.org/plugins/code-snippets) and it worked first time.

    If I can add …. @anish12345 … your message above “If anyone want help they are learning and find the solution.” isn’t helpful and is actually quite selfish. Do you ever seek help on any community support forum and find solutions which others have posted? That’s possible because others SHARE the solutions, not keep them to themselves. 🙂

    Sal.

    Plugin Author F4

    (@faktorvier)

    Thanks @sallymoos for confirming that this snippet that this hook is actually working!

Viewing 12 replies - 16 through 27 (of 27 total)
  • You must be logged in to reply to this topic.