• Resolved iteisaburo

    (@iteisaburo)


    Hi,

    I’ve created an account to test several thing on our upcoming online shop but when I went to my Account Details page to input first and last name, I got a “Display name is a required field” error.

    I’ve alrady chosen a Display Name when I created the account.

    Can you help me with this? It’s an error that can be lethal to online shops.

    Thanks in advance and best regards.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Doug – a11n

    (@dougaitken)

    Automattic Happiness Engineer

    Hi there @iteisaburo

    This sounds like a conflict is happening somewhere. On the Edit account page, can you enter and save the Display Name again?

    My first recommendation would be to look at troubleshooting and seeing if there are any conflicts. More details can be found here – https://docs.woocommerce.com/document/woocommerce-self-service-guide/

    I haven’t run into this bug myself so if you can reproduce this with only WooCommerce active and using a default theme like Storefront, then please detail the steps to reproduce.

    Thanks,

    Thread Starter iteisaburo

    (@iteisaburo)

    Thank you, Doug:

    I’ve fixed it with this code in functions.php

    add_filter('woocommerce_save_account_details_required_fields', 'wc_save_account_details_required_fields' );
    function wc_save_account_details_required_fields( $required_fields ){
        unset( $required_fields['account_display_name'] );
        return $required_fields;
    }
    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    I’m glad to hear it – thanks for letting us know!

    ahmetsefa

    (@ahmetsefa)

    i’ve had this problem
    There are hundreds of people living this problem like me
    I’ve fixed it with this code in functions.php
    `add_filter(‘woocommerce_save_account_details_required_fields’, ‘wc_save_account_details_required_fields’ );
    function wc_save_account_details_required_fields( $required_fields ){
    unset( $required_fields[‘account_display_name’] );
    return $required_fields;
    }
    Thank you, iteisaburo (@iteisaburo)
    5 months have passed but no improvement for this problem
    🙁 🙁 🙁

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edit Account is throwing a “Display name is a required field” error’ is closed to new replies.