Page 1 of 1
Default Email template is not working properly
Posted: Thu Apr 28, 2022 3:21 pm
by EktaraT
The default email template of OC 3.0.2.0 is not wroking properly. When an order status email is sent to the customer, the text appears as a paragraph in place of a table. Also, specified URLs are joined with the first word of the next sentence. Therefore, the customers are unable to use the URL for order tracking.
Re: Default Email template is not working properly
Posted: Thu Apr 28, 2022 7:04 pm
by paulfeakins
Do you have any extensions installed?
A screenshot might help?
Re: Default Email template is not working properly
Posted: Thu Apr 28, 2022 8:26 pm
by fegdeed
If you are referring to when an order is first placed, the email that is sent out, then check catalog/view/theme/default/template/mail/order_add.twig file
If you are referring to when an order is updated, the email that is sent out, then check catalog/view/theme/default/template/mail/order_edit.twig file.
Re: Default Email template is not working properly
Posted: Thu Apr 28, 2022 11:16 pm
by mikeinterserv
You can try this
Find system/library/template/twig/lexer.php line 162
Code: Select all
if (isset($this->positions[2][$this->position][0]) ) {
$text = rtrim($text);
Change to
Code: Select all
if (isset($this->positions[2][$this->position][0]) && ($this->options['whitespace_trim'] === $this->positions[2][$this->position][0])) {
$text = rtrim($text);
Re: Default Email template is not working properly
Posted: Fri Apr 29, 2022 12:08 am
by straightlight
Or in your: storage/vendor/twig/twig/src/Lexer.php file (without space on the ended parentheses).
Re: Default Email template is not working properly
Posted: Mon May 09, 2022 12:38 pm
by EktaraT
We tried all the suggestions but it didn't work. Code seems to be correct.
Re: Default Email template is not working properly
Posted: Mon May 09, 2022 5:38 pm
by paulfeakins
EktaraT wrote: ↑Mon May 09, 2022 12:38 pm
We tried all the suggestions but it didn't work. Code seems to be correct.
Seeing as you ignored my questions I suggest you pay a developer from the Commercial Support Forum who will be able to assist.
Re: Default Email template is not working properly
Posted: Wed Jun 15, 2022 12:43 pm
by EktaraT
Yes, we are using Huntbee extension - Order Status Email/SMS Templates.
https://www.huntbee.com/opencart/email- ... l-designer
A screenshot of the email template is attached.
Re: Default Email template is not working properly
Posted: Fri Jun 17, 2022 12:51 pm
by EktaraT
This issue is resolved. It was a twig issue.
Thank you for your suggestions.