New login process through OTP

I am setting up new process in my store. I have added a login process without signup. In login page user will put there phone number. After that they will receive an OTP. If the user exists in our customer data they will be redirected to there profile page. If the user doesn’t exist in our customer data I am asking them there email with an email field.

If a user login through the login page they will redirect to account page. I am facing issue while customer place a order through a normal flow by checkout. After placing order if customer tries to login if is showing me a message “user exists. logging in…” which I have added through condition but after showing this message it again redirects me to the login page.

Hi Sourav,

It does sound like you’re missing a step to handle sign-in during a checkout. Are buyers seeing this issue on the Order Status page? If so, you may need to customise this with extentions, more info on this here: About the Order status page

Hi Liam,

The customers are able to see order status page. I want to know if user is placing and order and after seeing the thankyou if user wants to see the status again through logging in to their profile page. The customer is not able to log in to there profile page. This the major issue I am facing after placing an order.

Hi Sourav, reproducing the steps here -

  • Guest user checkouts and buys a product (Shopify will internally create the user)
  • This user tries to login using your OTP Login flow
  • Your check that user exists works, so you try to login the user
  • But the login fails

Am I understanding this right ?

In that case, what could be happening is that user is not enabled and their email is not verified which is required for Login. You can update your logic and test this out.
(I know I am bit late here, but replying incase others face the same issue.)

Otherwise, we have developed a Shopify App for secure and easy Phone / OTP login - Simplify My Login ( Simplify My Login ‑ OTP Login - Easy login using Mobile/OTP, Google, FB, Touch ID and more | Shopify App Store )
We handle such scenarios and many other cases seamlessly in case you want to give our app a try.