By default, customers are redirected twice when clicking Log in from checkout. To provide a smoother login experience, we have created a snippet that eliminates the second redirect.
https://www.loom.com/embed/b1132a5bccbe46309f08096d0ec23ede?sid=fb038c31-3981-477d-b2a5-02b3f98a893e
From your Shopify admin, go to Online Store → Themes.
Find the theme you want to edit, click •••
and select Edit code.
From the file list, locate your site login:
customers/login.liquid
under Templates.main-login.liquid
under Sections.Paste the following snippet directly above the main container on the page.
<status-customer-login></status-customer-login>
Next, add the following id
and style
attributes to the main container on the page:
id="status-fallback-login" style="display: none;"
The updates will resemble something like this:
And that's it! To test the experience, go to the checkout page (while logged out) and click Log in.