Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Post-Login Redirection in Trade Theme

Solved

Post-Login Redirection in Trade Theme

cup-o-flora
Tourist
4 0 1

Hi,

I need assistance with routing after user login or account creation. Currently, when a user logs in, they are directed to the Account page (https://testweb.net.au/account). I would like them to be directed to the Home page (https://testweb.net.au/) instead.

I am using the Shopify Trade Theme.

Thank you!

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1969 564 566

This is an accepted solution.

Hi @cup-o-flora ,

 

To redirect to Home Page instead of Account page, you can follow my instructions:

Step 1: Go to Admin -> Online store -> Themes -> Edit Code:

BSSCommerceB2B_0-1718525888416.png

Step 2: Search for main-login.liquid, and add the code 

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

before the <button> like the following picture. Save and Your site will work.

BSSCommerceB2B_1-1718525991436.png

 

I hope these instructions will help you. If they are helpful, please give us to likes and mark as the solution.

Have a nice day sir!

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Replies 3 (3)

BSSCommerce-B2B
Shopify Partner
1969 564 566

This is an accepted solution.

Hi @cup-o-flora ,

 

To redirect to Home Page instead of Account page, you can follow my instructions:

Step 1: Go to Admin -> Online store -> Themes -> Edit Code:

BSSCommerceB2B_0-1718525888416.png

Step 2: Search for main-login.liquid, and add the code 

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

before the <button> like the following picture. Save and Your site will work.

BSSCommerceB2B_1-1718525991436.png

 

I hope these instructions will help you. If they are helpful, please give us to likes and mark as the solution.

Have a nice day sir!

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

cup-o-flora
Tourist
4 0 1

Thank you so much. I appreciate your help.

JackTr
Excursionist
25 0 17

Hello!

I'm also having the same need but I cannot find the main-login.liquid you're referring to in my theme. 😞

Any suggestion?