• Resolved rahultandy18

    (@rahultandy18)


    After adding some products to cart and proceed to checkout page. Now here I have user menus pages on my nav bar “Hi {user name}” and “Logout” both are not working. These menus are redirecting to the checkout page again and again.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @rahultandy18 – Without logging in hard to know what you are seeing exactly. But where they redirect is actually controlled by WordPress. We can pass in the url you choose, but if another plugin is filtering the login/logout redirects already they will inevitably filter ours as well. You would likely need to figure out where that is coming from so we could find out how it can be disabled in certain cases.

    Otherwise for non login/logout links we don’t modify the url at all, so if Hi {user name} isn’t a login/logout link and is not going where you set it to, that likely is also not coming from our end.

    Let us know.

    Thread Starter rahultandy18

    (@rahultandy18)

    Here are the details I am using to add products to my cart and proceed to checkout
    [email protected]
    Tiger12

    On checkout page Menu bar is working fine except the first Hi{name} menu. You will be able to see that after login.
    There is no issue with login-logout pages All I am trying to do is whenever I click on Hi{name} it should go to my account but it is redirecting to checkout page.

    First login with my details and go to checkout page after adding some products to the cart and try to click on Hi{name}, the link will redirect you to checkout page itself.
    https://willydawson.ssquares.co.in/checkout/

    • This reply was modified 4 years, 9 months ago by rahultandy18.
    Thread Starter rahultandy18

    (@rahultandy18)

    When I’m logged in and try to click on the ‘my account’ link ie. “Hi roderick”, it simply refreshes the page I’m on. How can I fix this?

    Plugin Author Daniel Iser

    (@danieliser)

    @rahultandy18 – I think you have other issues that are going on here.

    When I go to /my-account/ while there are items in the cart, it goes to checkout the first time, even manually typing it in rather than clicking it.

    If I remove items from the cart then I can properly load that page.

    In general though, the url of that menu item with Hi roderick text shows as https://willydawson.ssquares.co.in/my-account/, clicking it causes the browser to try to fetch that page. The server is redirecting to checkout.

    Honestly, this has nothing to do with our plugin’s functionality, as we don’t offer any redirecting in our own code. Even the login/logout stuff, we simply pass the redirect url to the login page and WP handles redirecting afterwards. Same would happen if you go to /wp-admin/ and then it redirects to wp-login.php?redirec=url.com/wp-admin/.

    Since there could be custom code here, i’d start with deactivating your code piece by piece to see if that resolves it, then plugins one by one, until you find where the conflict comes from.

    Hope that helps.

    Thread Starter rahultandy18

    (@rahultandy18)

    Okay got the issue, there was a custom code for “Logged user on my account page with something in cart”. Thanks for your prompt replies and your time.

    Plugin Author Daniel Iser

    (@danieliser)

    @rahultandy18 – Awesome, glad you got it worked out. Take a moment to rate and review the plugin and or support if you don’t mind.

    Thread Starter rahultandy18

    (@rahultandy18)

    Sure

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Menu is not redirecting to the desired pages while checkout’ is closed to new replies.