Post by straightlight » Tue Jan 18, 2022 11:13 am

leandromello wrote:
Tue Jan 18, 2022 6:23 am
I 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?
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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by bluebrad » Wed Mar 16, 2022 3:08 am

I updated catalog/language/en-gb/mail/order_edit.php to this:

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. 
 
 ';
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.
++++++++++++

New member

Posts

Joined
Tue Dec 05, 2017 2:49 pm

Who is online

Users browsing this forum: Bing [Bot] and 256 guests