Post by EktaraT » Thu Apr 28, 2022 3:21 pm

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.

New member

Posts

Joined
Thu Apr 28, 2022 3:10 pm

Post by paulfeakins » Thu Apr 28, 2022 7:04 pm

Do you have any extensions installed?

A screenshot might help?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by fegdeed » Thu Apr 28, 2022 8:26 pm

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.

Image
Get a secure, fast, and reliable web hosting service from https://turnuphosting.com/opencart-hosting/.


Active Member

Posts

Joined
Fri Sep 21, 2018 12:01 am

Post by mikeinterserv » Thu Apr 28, 2022 11:16 pm

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);

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by straightlight » Fri Apr 29, 2022 12:08 am

Or in your: storage/vendor/twig/twig/src/Lexer.php file (without space on the ended parentheses).

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 EktaraT » Mon May 09, 2022 12:38 pm

We tried all the suggestions but it didn't work. Code seems to be correct.

New member

Posts

Joined
Thu Apr 28, 2022 3:10 pm

Post by paulfeakins » Mon May 09, 2022 5:38 pm

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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by EktaraT » Wed Jun 15, 2022 12:43 pm

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.

Attachments

Password Reset Emails to Customer15-6-22.JPG

Password Reset Emails to Customer15-6-22.JPG (27.85 KiB) Viewed 685 times

Admin order alert email template 30-5-22.JPG

Admin order alert email template 30-5-22.JPG (35.46 KiB) Viewed 685 times


New member

Posts

Joined
Thu Apr 28, 2022 3:10 pm

Post by EktaraT » Fri Jun 17, 2022 12:51 pm

This issue is resolved. It was a twig issue.
Thank you for your suggestions.

New member

Posts

Joined
Thu Apr 28, 2022 3:10 pm
Who is online

Users browsing this forum: nonnedelectari and 54 guests