As you probably have noticed the standard Prestashop order messages section settings do not allow creating messages which would contain HTML links with clickable anchor texts. But there is still a workaround you can use to add HTML links to your e-mail messages.
To do this it is necessary to override the method AdminOrderController.php PostProcess as follows:
1 |
$customer_message->message = htmlentities(Tools::getValue('message'), ENT_COMPAT, 'UTF-8'); |
Change to
1 |
$customer_message->message = Tools::getValue('message'); |
Partner With Us
Looking for a partner that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote.
Talk to Vlad
Hi Alex
In which folder does this file exist – Been looking through my entire installation – using 1.5.4.1 and default theme
Thanks a bunch for your reply.
Antonio,
I have tried myself and I have received a letter with html tags. To view the letter I used Gmail web interface. Perhaps you did something wrong. So I recommend that you check if override works properly.
not works in 1.5.4.1