Sanjay is a co-founder at Meetanshi. He is a certified Magento developer who loves creating Magento E-commerce solutions. When he is not engrossed with anything related to Magento, he loves to play cricket.

2 comments On How to Redirect Customer Login or Registration Success to Checkout in Magento 2

  • If I have an account on the store and I add a product to my cart as a guest and try to login, the redirect to checkout works perfectly. But, if I log out from the store and I login again (from any other page, like homepage) I’ll be redirected to the checkout again instead of “My account”. According to a “normal” e-commerce flow I should be redirected to “My account”.

    Thanks you for your code, it’s a great starting point!

    • Hello,

      The above code facilitates the logged-in user to get redirected directly to the checkout if the product is added to the cart.
      And, thanks for the appreciation. Happy to help 🙂

Leave a Reply