Post by marius-ciclistu » Tue Nov 21, 2017 10:07 pm

Where is the user order confirmation email being formed in OC 3.x?

In 2.3.x (https://stackoverflow.com/questions/451 ... 2#45105802) the file is
catalog/model/checkout/order.php
and I made a mod for the user's comment to be inserted into his order confirmation email (https://www.opencart.com/index.php?rout ... load_id=47), but I'm having trouble finding the code that does that in oc 3.x.

Thank you.

New member

Posts

Joined
Sat Nov 24, 2012 6:22 am

Post by grgr » Tue Nov 21, 2017 10:25 pm

../catalog/controller/mail/order.php

-
Image Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by marius-ciclistu » Wed Nov 22, 2017 12:13 am

grgr wrote:
Tue Nov 21, 2017 10:25 pm
../catalog/controller/mail/order.php
Thank you.
As it was in the case of oc 2.3.x now with oc 3.x the same code blocks the comment from being placed into the html email to the client:

if ($comment && $notify) {
$data['comment'] = nl2br($comment);
} else {
$data['comment'] = '';
}

From where comes that $notify variable? It can be managed in the administration?

New member

Posts

Joined
Sat Nov 24, 2012 6:22 am

Post by straightlight » Wed Nov 22, 2017 12:19 am

This is handled from the database with the mail/order event table:

Code: Select all

(XX, 'mail_order_add', 'catalog/model/checkout/order/addOrderHistory/before', 'mail/order', 1);
1 is for the status field.

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 marius-ciclistu » Wed Nov 22, 2017 12:29 am

Thank you. Than it doesn't interfere with the comment being placed into the user's order confirmation email. I'll keep digging.

New member

Posts

Joined
Sat Nov 24, 2012 6:22 am

Post by marius-ciclistu » Wed Nov 22, 2017 1:22 am


New member

Posts

Joined
Sat Nov 24, 2012 6:22 am
Who is online

Users browsing this forum: JNeuhoff, nonnedelectari and 104 guests