I was hoping someone could help me with a quick question. Do you know how I can bypass the order and location selection for a B2B customer that logs in?
I tried a line of code and it didn’t work.
When a B2B customer logs in I want them to be directed to the home page instead of the account page.
Thank you for your time!
Hi @svandervort . You can use the following link and image to achieve this.
https://shopify.dev/docs/storefronts/themes/architecture/templates/customers-login
so basically what you’ve to do is, in your code find the form with ‘customer_login’ and add the “return_to: ‘/’”. So it will look something like this:
{% form 'customer_login', return_to: "/" %}
...rest of your code
Btw, in Trade theme, the page that contains the login page code is called “main-login.liquid”. You need to update here according to the previous reply.
Let us know if you need any help.
Thank you for the response! I tried this and it didn’t work.