Customer log in link redirect to checkout

I’m building a checkout extension and would like to include a link to prompt customers to log into their shop account. The login link in Shopify’s checkout (next to the Contact field) includes a checkout URL so the customer is redirected back to the checkout after logging in. i.e. storename.myshopify.com/account/login?checkout_url=%XYZcheckouts%XYZ… Is there a way to get access to the checkout url so we can also redirect back to checkout if a user clicks the link in our extension?

You can easily disable guest checkout in the checkout settings. Alternatively, just add the parameter “login?checkout_url=your_url” in the login page.

Where in the Checkout UI Extensions API is that checkout_url available? Have been unable to locate the URL to append after “login?”

Did you manage to find a solution to this? I’m using /account/login?return_url=%2Fcheckout but this is unsatisfactory as it forgets any info the customer has already entered.

1 Like

I haven’t found anything that works better than your solution