Solved

Redirect to a specific page after login using the new passwordless login

PatrickHeck
Tourist
3 0 1

Hi everyone!


I'd like to use the new passwordless login experience, described here: https://help.shopify.com/de/manual/customers/customer-accounts/new-customer-accounts

After login in, though, I'd like to redirect customers to a page I specify. Does anyone know, it that's possible?

 

I'm thinking of something like a GET parameter, that can be appended to the login URL.

e.g. https://shopify.com/XXXXXXXXXX/account ?redirect_to=/overview/

In this example, the "?redirect_to=/overview/" part would specify the target after login.

 

Any hints?

Best
Patrick

Accepted Solution (1)
gr_trading
Shopify Partner
1764 142 187

This is an accepted solution.

Hi @PatrickHeck 

 

Yes, you are right because shopify don't allow any kind of editing to login, and account flow.

 

Therefore if you need any design or flow change you have to switch to classic login.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

View solution in original post

Replies 8 (8)

gr_trading
Shopify Partner
1764 142 187

Hi @PatrickHeck 

 

To change the landing url after login please follow the below steps.

 

Go to online-store - > edit theme search for main-login.liquid and find code

 

{%- form 'customer_login', novalidate: 'novalidate' -%}

 

now put the below line just after the above code

 

<input type="hidden" id="checkout_url" name="checkout_url" value="/">

 

value="/" refer to homepage here you can provide any URL.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
PatrickHeck
Tourist
3 0 1

Thanks @gr_trading ! But isn't main-login.liquid meant to control the classical login? (The login that needs a password)

gr_trading
Shopify Partner
1764 142 187

This is an accepted solution.

Hi @PatrickHeck 

 

Yes, you are right because shopify don't allow any kind of editing to login, and account flow.

 

Therefore if you need any design or flow change you have to switch to classic login.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

linia
Excursionist
15 1 15

Will the new login experience never have abilities for customization?  

Meaning... if there is anything in it that's not working for a certain store solution, is the only option to go back to classic?

I've just made the switch myself and am not fully understanding if there are *any* customization options at all.

Since you started this a few month ago, Patrick, I wonder if you can help me understand this.

PatrickHeck
Tourist
3 0 1

Hi Linia,

thanks for contributing to this thread. However, I don't have any further information than the accepted solution contains. For general customization options, apart from the one discussed here, take a look at the manual: https://help.shopify.com/de/manual/customers/customer-accounts/new-customer-accounts.

linia
Excursionist
15 1 15

Thanks so much for the response.  Yes - I had run into that documentation while switching myself. 

The documentation is helpful. I just didn't realize that the flow would be and going to the 'orders' page after login, which is quite unintuitive/problematic for my business, given the experience we need to provide clients.

The fact that there can be no customization is a bit surprising.

In any case - may end up going back to classic accounts.  Thanks again for your response!

gr_trading
Shopify Partner
1764 142 187

Hi @linia,

 

To customise the order section Shopify is working for order checkout extension permissions.

 

its in developer mode and allowed to build and test the apps.

 

Shopify is trying to stop users to polluting its theme structure by stoping the access to their key resources and making more scoping to do things using APPs only.

 

 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
linia
Excursionist
15 1 15
That’s sad that this will only be through apps 😕

I can see their perspective, but if you’re not a developer and don’t want to spend money on apps for every tiny thing you want to do, this makes the new experience quite unusable.

But thank you for the information - at least now I know this means I have to go back to the old version. The default behavior doesn’t work for my business.

Thanks for taking the time to share the overall direction they’re going in!