Re: CREATE ACCOUNT button in the login page

How can I code a 'Create Account' button for the login page?

JessicaCP
Tourist
5 0 1

I've created a CREATE ACCOUNT button in the login page

JessicaCP_0-1643268256852.png

 

This is what it had previously in the code:

<p>{{ 'layout.customer.create_account' | t | customer_register_link }}</p>

 

and I need to have this but with the appropriate variables to go to the register page (account/register)

<button type="submit" class="btn btn--full">

      {{ 'customer.login.sign_in' | t }}

 </button>

 

Can you help me?

Thanks!

Replies 9 (9)

Zworthkey
Shopify Partner
5581 642 1581

@JessicaCP 

Firstly you have to enable the customer Account page.
Then it will work.

follow this link to enable the Account page.
https://heliumdev.com/blog/shopify-enable-customer-accounts

JessicaCP
Tourist
5 0 1

The account is enabled the thing is is a put this in the button:

 

 <button type="submit" class="btn btn--full">     

          {{ 'layout.customer.create_account' | t | }}

 </button>

I got this as a result after doing the captcha

JessicaCP_1-1643271324505.png

 

 

and if I put  this:

 <button type="submit" class="btn btn--full">     

          {{ 'customer_register_link' | t | }}

 </button>

 

This is the result

JessicaCP_0-1643271168797.png

If I display it as a link it works and goes to the register page but I want to have it as a button.

 

Thanks!

 

 

 

 

Zworthkey
Shopify Partner
5581 642 1581

@JessicaCP 

Please share your site URL,
I will check out the issue and provide you a solution here.

JessicaCP
Tourist
5 0 1

Hi, 

 

this is the url https://webshop.sgs.com/account/login?return_url=%2Faccount

 

now I revert it back to the link because the site is live and I need to have it working but I want to have a button instead of a link please.

 

thank you!

Zworthkey
Shopify Partner
5581 642 1581

@JessicaCP it's already working

JessicaCP
Tourist
5 0 1

Yes, because I revert it back to a link because the site is live, 

 

check now please https://webshop.sgs.com/account/login?return_url=%2Faccount

 

Zworthkey
Shopify Partner
5581 642 1581

Already correct.

 

JessicaCP
Tourist
5 0 1

Still not working, does not redirect to register page (https://webshop.sgs.com/account/register)

Daaniel
Shopify Partner
23 0 8

Hi Jessica,

where you able to implement the button succesfully? I am desperately looking for this button too instead of text solution.