Domanda

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?

È stato utile?

Soluzione

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.

Altri suggerimenti

There seems to be some confusion regarding the "reset" and "forgot" password templates. "Reset" is actually a confirmation of the password being changed. The email sent to get the link to set a new password is the "forgot" email. To me it was poor labeling and structuring of the fields in the customer configuration that made me confused. The "reset" template should be grouped with the other "change" fields under the "Account Information Options" section/tab in the same configuration - and be labeled something like "Confirmation Changed Password".

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top