• I am trying to add more user fields in the page (such as description)
    However, I used a lot of time to guess the variable of the user profile fields and it can not be added properly.

    I am going to ask how to add more fields in this page.
    Also, I want to add a avatar upload in this page. Where can I find the tutorial ? Thanks !!!

    https://wordpress.org/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Claudio Sanches

    (@claudiosanches)

    You can use the woocommerce_edit_account_form to add new fields.

    And you can use the woocommerce_save_account_details action to save your fields in the database.

    Hey there,

    It sounds like you want users to be able to upload an avatar on their my account page? We did just completely redo the My Account page.

    We don’t use a user’s avatar anywhere in WooCommerce (except product reviews) so we don’t have a space to upload one.

    You could add additional fields but this would be quite a bit of work. Have you thought about using Gravatar’s instead?

    This way you wouldn’t have to manage anything. The user can update their gravatar on the gravatar website anytime they wanted. And anyone who already has a gravatar doesn’t have to add one at all.

    I hope that helps! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Enhance functions on form-edit-account.php’ is closed to new replies.