Support » Plugin: Peter's Login Redirect » Sidebar login Widget woocommerce not redirecting

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Peter

    (@pkthree)

    If your login widget forces a specific redirect URL (and only one URL) you can try implementing this setting in my plugin:

    “Use external redirect file. Set this to “Yes” if you are using a plugin such as Gigya that bypasses the regular WordPress redirect process (and allows only one fixed redirect URL). Then, set the redirect URL to http://www.yoursite.com/wp-content/plugins/peters-login-redirect/wplogin_redirect_control.php“.

    In other words, if you change that setting to “Yes” and hardcode the redirect URL in your login widget to that path, that might solve the issue.

    If you get asked this question in the future I finally found the answer. Using what you told me I figured out that if you replace this in the login-widget.php(create a woocommmerce folder in your theme so you don’t lose it on update):

    <input type="hidden" name="redirect_to" class="redirect_to" value="<?php echo $redirect_to; ?>" />

    with

    <input type="hidden" name="redirect_to" class="redirect_to" value="<?php echo site_url('/wp-content/plugins/peters-login-redirect/wplogin_redirect_control.php/'); ?>" />

    aartikhairnar

    (@aartikhairnar)

    not working for me…
    i want role based redirection using woocommerce log in menu.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sidebar login Widget woocommerce not redirecting’ is closed to new replies.