Choose which page to show when customers log in to your store
When a customer visits your online store and logs in to their account, they will see a My Account page that shows their past orders and associated shipping and billing addresses. You can edit your theme so that customers are taken to a different page when they log in, such as the home page, or the catalog page.
In the Templates directory, click
customers/login.liquid
.Find the following line of code:
{% form 'customer_login' %}
On a new line below it, paste the following:
<input type="hidden" name="checkout_url" value="/collections/all" />
For the
value
attribute in the line of code that you just pasted, replace/collections/all
with the relative URL of the page that you want customers to see when they log in. A value of/collections/all
will take customers to your store's catalog page. A value of/
will take customers to you store's home page.Click Save.