You need to set the email to HTML as well. There are extensions on the Marketplace that provides this functionality already. I would suggest to take a look.leandromello wrote: ↑Tue Jan 18, 2022 6:23 amI solved this problem just adding some "<br>" and formating the order_info.twig.
But i still have a similar problem.
How to change the content of {{ comment }} to html?
The customer receive the e-mail in HTML, but the content of the field "comment" go with no formating at all.
For example:
I send:
"Hi,
Your order is closed."
The client receive in the e-mail:
"Hi Your order is closed"
All in one line.
How to solve this?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I updated catalog/language/en-gb/mail/order_edit.php to this:
and get the line breaks accordingly
+++++++++++
Order ID:
163
Date Added:
08/03/2022
Your order has been updated to the following status:
Complete
To view your order click on the link below:
https://shop.bluebrad.com/index.php?rou ... der_id=163
The comments for your order are:
Demo Text
Please reply to this email if you have any questions.
++++++++++++
Code: Select all
<?php
// Text
$_['text_subject'] = '%s - Order Update %s';
$_['text_order_id'] = '
Order ID:
';
$_['text_date_added'] = '
Date Added:
';
$_['text_order_status'] = '
Your order has been updated to the following status:
';
$_['text_comment'] = '
The comments for your order are:
';
$_['text_link'] = '
To view your order click on the link below:
';
$_['text_footer'] = '
Please reply to this email if you have any questions.
';
+++++++++++
Order ID:
163
Date Added:
08/03/2022
Your order has been updated to the following status:
Complete
To view your order click on the link below:
https://shop.bluebrad.com/index.php?rou ... der_id=163
The comments for your order are:
Demo Text
Please reply to this email if you have any questions.
++++++++++++
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 110 guests