When I click on login-url in my Liquid theme, I dont get redirected to my custom login page.

Shopify Partner
1 0 0

Screenshot 2024-03-03 013859.png

SOLVED: In the shopify admin, go to Settings > Customer accounts. Then click edit on the accounts in online store and checkout and then select "classic customer accounts". 


So when I click on the register link in my theme(that I am building from scratch), I get redirected to the register page. But when I click on the login link I get sent to Shopify's login form show in the image above, NOT the login page I made. Also even if I physically type https://my-store-url/account/login, I get redirected to the image above again. I want to be able to get redirected to my custom login page.

This is what my login file looks like: 


  {% form 'customer_login' %}

    {{ form.errors | default_errors }}

    <div class="email">
      <label for="email">Email</label>
      <input type="email" name="customer[email]">

    <div class="password">
      <label for="password">Password</label>
      <input type="password" name="customer[password]">

    <div class="submit">
      <input type="submit" value="Sign in">
  {% endform %}
  <a href="{{ routes.account_register_url }}">Create an account</a>
Replies 0 (0)