Skip to content

Commit adbd3d3

Browse files
Added Liquid code to support new customer accounts for the trade-login page template.
1 parent 9011d20 commit adbd3d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sections/trade-login.liquid

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
{% comment %}
2626
Login form
2727
{% endcomment %}
28+
29+
30+
{%- if shop.customer_accounts_enabled -%}
31+
<a class="button" href="{{ routes.account_login_url }}">{{ 'customer.account.login' | t }}</a>
32+
{% else %}
2833

2934
<form method="post" action="/account/login" id="customer_login" accept-charset="UTF-8" novalidate="novalidate"><input type="hidden" name="form_type" value="customer_login">
3035

@@ -90,6 +95,7 @@
9095
</button>
9196

9297
</form>
98+
{% endif %}
9399

94100
{% comment %}
95101
Apply for an account

0 commit comments

Comments
 (0)