0

I am unsure what has happened but my email template Reset Password button now links to a 404 page. Is there any way that I can get the original variable used for getting a customers password reset link?

I can confirm that the email template being called is the correct one as I have previously formatted the template.

The anchor tag currently being used that links to the 404 page is as follows:

<a href="{{store url="customer/account/resetpassword/" _query_id=$customer.id _query_token=$customer.rp_token}}"><span>Reset Password</span></a>
  • What is the url you are getting when click on reset password link from email? – Sukumar Gorai Jan 22 at 11:22
  • This one: mySite.co.uk/customer/account/resetpassword/?id=7263254&token=mfuApW6SwLOX4JVtDZHc25ewOD9Wi0Zs I have stripped the first part of the URL up to /customer – A. Fletcher Jan 22 at 11:24
  • On which email template are you getting this url? Did you customise it or default template? If default template then please let me know the template file name? – Sukumar Gorai Jan 22 at 11:42
  • Turns out what I thought was the correct URL (/customer/account/resetpassword) wasn't actually the correct URL. The one I needed was /customer/account/createpassword. I found this by reverting to the default magento email template and that was set as a different link. Its always the small things that break :D – A. Fletcher Jan 22 at 11:48
  • 1
    You are absolutely right. I have checked the email template file and its shows like this <a href="{{var this.getUrl($store,'customer/account/createPassword',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])}}" target="_blank">{{trans "Set a New Password"}}</a> – Sukumar Gorai Jan 22 at 11:53
0

You can create a transactional email template (reset password) using the Postcards. I hope this resource will be helpful.

Also, you can download free email templates from GitHub.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.