Jump to content

Add html link in message to customers.


Recommended Posts

I would like to send my customers an email from the order section which has a html link on it to a review page on my site.

 

I can create a standard message in the order messages section but the link comes out as normal text unable to be clicked on.

 

Is there an easy way to do this, or will I have to send it by my email client.

 

Using PS V4

 

Thank you

 

Richard

Link to comment
Share on other sites

Hello,

 

I think that in the standard way it is not possible as if you write a link, it will be shown up as text:

Message:

<a href="sdfsdfsdfsdf">asdasdasasdasd</a>

 

It is necessary to override AdminOrderController.php PostProcess method. $customer_message->message = htmlentities(Tools::getValue('message'), ENT_COMPAT, 'UTF-8'); change to $customer_message->message = Tools::getValue('message');

 

Best regards

Edited by Valérie Assetskaya (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...