Cannot logout from MyAccount page also i have problem

This topic has 3 replies, 2 voices, and was last updated 1 weeks, 3 days ago ago by Luca Rossi

  • Avatar: Abdulaziz
    Abdulaziz
    Participant
    March 29, 2025 at 05:49

    Cannot logout from MyAccount page also i have problem with customizing new users role
    as you can see at the photo , also privacy section , can’t see it
    i send 3 photos , one of them is a screen shot of my site , also you can find what i want my login or register page looks like , thank you

    Files is visible for topic creator and
    support staff only.
    2 Answers
    Avatar: Abdulaziz
    Abdulaziz
    Participant
    March 29, 2025 at 05:56

    would like to customize the user registration process.

    Specifically, I need to add custom fields to the theme’s custom registration form – the one that typically appears in the popup/modal or sidebar, not the standard WooCommerce “My Account” page form.

    The custom fields I need to add are:

    User Role Selection: A select dropdown field where users can choose their role upon registration. The options should be something like “Contractor”, “Engineer”, and “Regular Customer”.

    Company Name: An optional text input field, primarily for users registering as “Contractor” or “Engineer”.

    Could you please advise on the recommended method for adding these custom fields to your theme’s registration form logic?

    Is there a specific action hook available within the registration form template/function that I can use in my child theme’s functions.php to output these fields?

    If using a hook is not the intended way, could you please provide the template file path (within the XStore theme folder, e.g., woocommerce/xyz or template-parts/account/register-popup.php) that renders this specific registration form, so I can copy it to my child theme and modify it there?

    I am comfortable working with child themes and adding code snippets or overriding template files, I just need the correct hook name or file path to target the theme’s specific registration implementation.

    Thank you very much for your guidance and support!

    Best regards,

    Avatar: Justin
    Luca Rossi
    Support staff
    March 29, 2025 at 15:45

    Dear @Abdulaziz,

    Thank you for reaching out to us and for providing a detailed explanation of your request.

    To customize the user registration process in the XStore theme—specifically the custom registration form that appears in the popup/modal or sidebar (as opposed to the default WooCommerce “My Account” page)—we recommend overriding the relevant template file.

    The registration form used in the popup/modal can be found at the following path:

    /wp-content/themes/xstore/woocommerce/myaccount/form-login.php

    To override this file, please copy it to your child theme using the path below:

    /wp-content/themes/xstore-child/woocommerce/myaccount/form-login.php

    When making modifications, kindly ensure that the original structure and logic of the file are preserved while adding your custom fields.

    To add a custom user role:

    https://developer.wordpress.org/reference/functions/add_role/

    We hope this guidance helps you implement the desired customization successfully. Should you require any further assistance, please do not hesitate to contact us.

    Best regards,
    The 8Theme Team

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

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

Helpful Topics

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