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
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
I figured it out - for those looking to do this...
Open up abudance\config-woocommerce\config.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
Hey!
The code snippets seem to be equal?
Best regards,
Peter
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 abudance\config-woocommerce\config.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
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 abudance\config-woocommerce\config.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.
...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 :)
Glad that its working for you now :)
Regards,
Devin
This topic has been closed to new replies.