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
565 114 137

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!

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


B2B Solution & Custom Pricing |BSS: B2B Portal, Quote, Net 30 | BSS: B2B Login Lock Hide Price


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 2 (2)

BSSCommerce-B2B
Shopify Partner
565 114 137

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!

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


B2B Solution & Custom Pricing |BSS: B2B Portal, Quote, Net 30 | BSS: B2B Login Lock Hide Price


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
cup-o-flora
Tourist
4 0 1

Thank you so much. I appreciate your help.