Message Template Token issue with emails

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
We are currently using nopCommerce 3.3.

I am trying to configure the password recovery message template. I am using the %Store.URL% and %Customer.PasswordRecoveryURL% tags in the message. The whole message is below:


<p><a href="/Admin/MessageTemplate/Edit/%Store.URL%">%Store.Name%</a> <br /> <br /> To change your password <a href="/Admin/MessageTemplate/Edit/%Customer.PasswordRecoveryURL%">click here</a>. <br /> <br /> %Store.Name%</p>

It seems odd that the tags within the hrefs start with "/Admin/MessageTemplate/Edit/", but everytime i try to remove them, the system puts them back.

When a user receives the password recovery email, the text of the email is fine, but the links are broken. When I click on store name link, the URL is "http://admin/MessageTemplate/Edit/http:/domain.com/", which obviously does not work. The same goes for the password recovery url path, it also starts with "admin/messagetemplate/edit".

Also, it looks like it only adds that prefix when the tag is part of the href on an anchor tag.

Do we have something configured incorrerctly? Any help would be greatly appreciated.
8 years ago
dstocker wrote:
We are currently using nopCommerce 3.3.

I am trying to configure the password recovery message template. I am using the %Store.URL% and %Customer.PasswordRecoveryURL% tags in the message. The whole message is below:


<p><a href="/Admin/MessageTemplate/Edit/%Store.URL%">%Store.Name%</a> <br /> <br /> To change your password <a href="/Admin/MessageTemplate/Edit/%Customer.PasswordRecoveryURL%">click here</a>. <br /> <br /> %Store.Name%</p>

It seems odd that the tags within the hrefs start with "/Admin/MessageTemplate/Edit/", but everytime i try to remove them, the system puts them back.

When a user receives the password recovery email, the text of the email is fine, but the links are broken. When I click on store name link, the URL is "http://admin/MessageTemplate/Edit/http:/domain.com/", which obviously does not work. The same goes for the password recovery url path, it also starts with "admin/messagetemplate/edit".

Also, it looks like it only adds that prefix when the tag is part of the href on an anchor tag.

Do we have something configured incorrerctly? Any help would be greatly appreciated.


Please try %Customer.PasswordRecoveryURL% instead of "/Admin/MessageTemplate/Edit/%Customer.PasswordRecoveryURL%"
8 years ago
Thanks for the reply. Whenever i try that, either through the source code or through the link edit window, the unwanted prefix gets automatically put back on.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.