Users (customers) access to own user profile

Hi,

I am not sure if this is a theme option but when a customer uses woo commerce to buy something they create an account which registers them as ‘customers’.

Does the theme already have a page where those customers can edit their account, logout, see orders, change password, edit addresses, upload user image etc.

I guess like a top dashboard bar that ‘customers’ see when logged in?

Hi @ocduk,

Thanks for reaching out.

Unfortunately, there is none, it’s either do custom development or 3rd party plugins. Without it, the registration is only limited to what Wordpress and Woocommerce provide.

Example, https://yithemes.com/themes/plugins/yith-woocommerce-customize-myaccount-page/. Please use it with caution, I only provided as a sample and reference.

Thanks!

Ok thanks Rad.

Maybe I can work around it, is there a way to show a ‘Login’ link in my topbarMenu which when a user is logged in, it shows ‘Logout’?

Thanks, Ashley.

Hi @ocduk,

That still require customization but this https://wordpress.stackexchange.com/questions/165791/log-in-log-out-code-in-header could give you the idea. You can turn it to a shortcode and place on your header/topbar. Example,

add_shortcode('log_io', 'log_io');

function log_io () {

ob_start();

if(is_user_logged_in() ) {
      global $current_user;
      get_currentuserinfo();
   echo get_avatar($current_user->user_email);
    echo 'Hello, '. $current_user->display_name;
   echo '<a href="/wp-login.php?action=logout">logout</a>';
} else {
     echo '<a href="/wp-login.php?action=login">login</a>';
     echo '<a href="/wp-login.php?action=register">register</a>';
}

return ob_get_clean();

}

Then simply use the shortcode [log_io]

Hope this helps.

Thanks Rad,

After much searching, I found this solution (the one listed ‘best solution’, which works well for me. It allows me to create menu links for login.out/profile etc to add in any menu I want.

https://www.proy.info/wordpress-login-logout-menu-link-without-a-plugin/

You are most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.