Skip to content

Commit a79f877

Browse files
committed
Set login to use Dawn default languages
1 parent af2f0a4 commit a79f877

File tree

1 file changed

+6
-35
lines changed

1 file changed

+6
-35
lines changed

sections/main-b2b-login.liquid

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
*********************
99
1010
SETUP
11-
Add this code to a new file /sections/b2b-login.liquid
12-
Next, add a new page /templates/page.b2b-login.liquid ensuring it is a liquid page. Add this code {% section 'b2b-login' %}
13-
Next, in your Shopify Admin, go to Online Store > Pages > Add page. Create a new page, under "Search engine listing", set the "URl handle" to "b2b-login". From the "Template" section, choose "b2b-login"
11+
In your Shopify Admin, go to Online Store > Pages > Add page. Create a new page, under "Search engine listing", set the "URl handle" to "b2b-login". From the "Template" section, choose "b2b-login"
1412
Once this is done, go to Online Store and click "Customize" on your theme. Search for "b2b-login" and you can then edit how this page works and looks
1513
1614
*********************
@@ -66,7 +64,7 @@ This is the Shopify Liquid code that generates the page layout
6664

6765
{% if section.settings.login_type == 'passwordless' %}
6866
<a class="b2b-btn b2b-btn-primary" href="{{ routes.account_login_url }}">
69-
{{ section.settings.sign_in }}
67+
{{ 'customer.login_page.sign_in' | t }}
7068
</a>
7169
{% else %}
7270

@@ -84,7 +82,7 @@ This is the Shopify Liquid code that generates the page layout
8482
autocorrect="off"
8583
autocapitalize="off"
8684
autocomplete="email"
87-
placeholder="{{ section.settings.login_email }}"
85+
placeholder="{{ 'customer.login_page.email' | t }}"
8886
required
8987
>
9088
</div>
@@ -99,18 +97,18 @@ This is the Shopify Liquid code that generates the page layout
9997
autocorrect="off"
10098
autocapitalize="off"
10199
autocomplete="current-password"
102-
placeholder="{{ section.settings.login_password }}"
100+
placeholder="{{ 'customer.login_page.password' | t }}""
103101
required
104102
>
105103
<div class="b2b-form-help">
106104
<a href="/account/login#recover" class="b2b-link-text">
107-
{{ section.settings.forgot_password }}
105+
{{ 'customer.login_page.forgot_password' | t }}
108106
</a>
109107
</div>
110108
</div>
111109
112110
<button class="b2b-btn b2b-btn-primary">
113-
{{ section.settings.sign_in }}
111+
{{ 'customer.login_page.sign_in' | t }}
114112
</button>
115113
</form>
116114
@@ -744,33 +742,6 @@ This is the scheme that controls the content in the Shopify Customizer tool
744742
"label": "Introduction Text",
745743
"default": "Sign in below to get instant access to your B2B account and start placing orders."
746744
},
747-
748-
{
749-
"type": "text",
750-
"id": "login_email",
751-
"label": "Email",
752-
"default": "Enter your email address"
753-
},
754-
755-
{
756-
"type": "text",
757-
"id": "login_password",
758-
"label": "Password",
759-
"default": "Enter your password"
760-
},
761-
{
762-
"type": "text",
763-
"id": "sign_in",
764-
"label": "Sign in button",
765-
"default": "Sign In"
766-
},
767-
{
768-
"type": "text",
769-
"id": "forgot_password",
770-
"label": "Forgot password",
771-
"default": "Forgot password?"
772-
},
773-
774745
{
775746
"type": "text",
776747
"id": "open_account_title",

0 commit comments

Comments
 (0)