Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12672

    Currently a non-registered user that clicks on the Reigster in the subnav is redirected to the standard WP create an account page. Is there a way for the Register link to link to the WC my account page?

    Please let me now cheers,

    Rick

    #76330

    I figured it out – for those looking to do this…

    Open up abudanceconfig-woocommerceconfig.php and find the following code:

    if(get_option('users_can_register'))
    {
    $output .= "<li class='register_link'><a>".__('Register', 'avia_framework')."</a>";
    }

    Replace with:

    if(get_option('users_can_register'))
    {
    $output .= "<li class='register_link'><a>".__('Register', 'avia_framework')."</a>";
    }

    Cheers,

    Rick

    #76331

    Hey!

    The code snippets seem to be equal?

    Best regards,

    Peter

    #76332

    I am having the same issue that Rick mentioned above (“Currently a non-registered user that clicks on the Reigster in the subnav is redirected to the standard WP create an account page. Is there a way for the Register link to link to the WC my account page?”).

    I tried replacing the code he mentioned in abudanceconfig-woocommerceconfig.php, but it did not work. (It just seemed to break the “Register” hyperlink on my home page.)

    Do you have another solution? (Note: the “My Account” link does go to a page that offers an unregistered visitor to Login or Register.” – Can the Register link be directed to this page to possibly fix the problem?

    Thanks,

    Tim

    #76333

    I think I found a solution that is very similar to Rick’s suggestion…

    I made the “Register” link go to the “My Account” page for unregistered visitors by making the following change to the code in abudanceconfig-woocommerceconfig.php:

    REPLACE the following:

    if(get_option(‘users_can_register’))

    {

    $output .= “<li class=’register_link’>“.__(‘Register’, ‘avia_framework’).”“;

    }

    WITH the following:

    if(get_option(‘users_can_register’))

    {

    $output .= “<li class=’register_link’>“.__(‘Register’, ‘avia_framework’).”“;

    }

    It seems to work ok.

    #76335

    …well, it keeps deleting the important part when I post it (I do not know why), so basically go to that code and replace the url ‘register’ with ‘account overview’. I hope this is helpful. Sorry for any confusion my post may have caused.

    … perhaps Dude could clean this up by deleting my posts. thx :)

    #76336

    Glad that its working for you now :)

    Regards,

    Devin

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Register in Submenu Directs to WP Create Account Rather Than WC MY Account’ is closed to new replies.