Password recover option does not show up when clicked on

Solved
asd123
Excursionist
20 0 7

Hello,

we recently discovered that the password recovery form does not work when we click on it. How to fix that? Brooklyn theme.

Accepted Solution (1)

Accepted Solutions
LitExtension
Shopify Partner
1975 329 404

This is an accepted solution.

Hi @asd123 ,

Please follow these steps:
- Step 1: Go to Online store > Themes > Actions > Edit code.
- Step 2: Go to templates > customers/login.liquid and paste this at the bottom of the file:

<script type="text/javascript">
  document.getElementById('RecoverPassword').addEventListener('click', showRecoverPasswordForm);
  document.getElementById('HideRecoverPasswordLink').addEventListener('click', hideRecoverPasswordForm);
  function showRecoverPasswordForm() {
    document.getElementById('RecoverPasswordForm').style.display = 'block';
    document.getElementById('CustomerLoginForm').style.display='none';
  }

  function hideRecoverPasswordForm() {
    document.getElementById('RecoverPasswordForm').style.display = 'none';
    document.getElementById('CustomerLoginForm').style.display = 'block';
  }

  if (window.location.hash == '#recover') { showRecoverPasswordForm() }
</script>


Hope it helps!

If my answer can help you solve your issue, please mark it as a solution. Thank you and good luck.

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!

View solution in original post

Replies 3 (3)
LitExtension
Shopify Partner
1975 329 404

Hi @asd123,

Please send your site and if your site is password protected, please send me the password.
I will check it for you.

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
LitExtension
Shopify Partner
1975 329 404

This is an accepted solution.

Hi @asd123 ,

Please follow these steps:
- Step 1: Go to Online store > Themes > Actions > Edit code.
- Step 2: Go to templates > customers/login.liquid and paste this at the bottom of the file:

<script type="text/javascript">
  document.getElementById('RecoverPassword').addEventListener('click', showRecoverPasswordForm);
  document.getElementById('HideRecoverPasswordLink').addEventListener('click', hideRecoverPasswordForm);
  function showRecoverPasswordForm() {
    document.getElementById('RecoverPasswordForm').style.display = 'block';
    document.getElementById('CustomerLoginForm').style.display='none';
  }

  function hideRecoverPasswordForm() {
    document.getElementById('RecoverPasswordForm').style.display = 'none';
    document.getElementById('CustomerLoginForm').style.display = 'block';
  }

  if (window.location.hash == '#recover') { showRecoverPasswordForm() }
</script>


Hope it helps!

If my answer can help you solve your issue, please mark it as a solution. Thank you and good luck.

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!

View solution in original post

asd123
Excursionist
20 0 7

It worked! Thanks a lot.