3

In Magento 2, when editing a customer in the backend you have the option to Reset Password for the customer, when click on Reset Password, customer will get an email with a link to reset the password.

enter image description here

However, I can't find out where to edit the reset password email template.

I have tried to create a new email template in Marketing -> Email Templates. I created the new email template from Reset Password (template). And in Configuration -> Customers -> Customer Configuration, under the Pasword Options, I set Reset Password Template to the one I created in Email Templates.

enter image description here

But it has no effect. Magento is still using it's default email templates.

I have made sure it's the correct storeview and I also made sure the cache is cleared.

What did I miss?

3

Goto

vendor/magento/module-customer/view/frontend/email/

Copy the respective template file to your theme like below

app/design/frontend/[Vendor]/[Theme]/Magento_Customer/email/

And change the template accordingly. It should work.

  • Do you know which template does Magento use when we click "Reset password" in Admin Panel? I have even tried to edit the template directly in vendor/magento/module-customer/view/frontend/email/password_reset_confirmation.html. but it has no effect. maybe I'm editing a wrong template? – Magento Learner Jun 21 '18 at 9:05
  • I found it out, it's actaully using the template vendor/magento/module-customer/view/frontend/email/password_new.html. I'll try your solution. – Magento Learner Jun 21 '18 at 9:27
  • You are absolutely right. Try it should work. – Sukumar Gorai Jun 21 '18 at 9:28
  • It's working. And i accepted your answer :). Thanks a lot for the help. But can I not edit the template in admin? like I described in the post? – Magento Learner Jun 21 '18 at 9:29
  • 1
    Happy to help!. You cannot edit directly on admin. If you want then you can do it by creating a new template under Marketing tab and then assign that template to forgot password template from Store->Configuration->Customer Configuration->Password Options. There you can find the template select option for reset password and all. If still not work then try to clean the cache and use static content deploy etc. and try again. – Sukumar Gorai Jun 21 '18 at 9:33

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.