1

I noticed that in opencart 2.3.0.2 the order confirmation for admin contains the comments from the user, and the email that the user gets doesn't. The user gets only the text version with the comment, not the HTML version with the comment.

In 2012 2013 the problem was that the comment wasn't passed at all into the emails.

https://github.com/opencart/opencart/pull/94

https://github.com/opencart-ce/opencart-ce/issues/12

It seems the problem was solved only partially.

marius-ciclistu
  • 448
  • 4
  • 14

1 Answers1

1

The solution is: Edit: catalog/model/checkout/order.php

Put this code:

            $data['ip'] = $order_info['ip'];
            $data['order_status'] = $order_status;

            if ($comment && $notify) {
                $data['comment'] = nl2br($comment);
            } else {
                $data['comment'] = '';
            }
            if ($comment) {
                    if ($order_info['comment']) {
                        $data['comment'] = nl2br($comment) . '<br/><br/><strong>Comment:</strong><br/>' . $order_info['comment'];
                    } else {
                        $data['comment'] = nl2br($comment);
                    }
            } else {
                    if ($order_info['comment']) {
                        $data['comment'] = $order_info['comment'];
                    } else {
                        $data['comment'] = '';
                    }
            }

instead of:

            $data['ip'] = $order_info['ip'];
            $data['order_status'] = $order_status;

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

Or you can install this mod https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=32499&filter_search=add%20comment&filter_category_id=8&filter_license=0

marius-ciclistu
  • 448
  • 4
  • 14
  • 1
    For opencart 3.x the extension can be found here (also for 2.3.0.2): https://www.opencart.com/index.php?route=marketplace/extension/info&member_token=rVS1cd7Zf8CZoplGwHwr1rXxHvsHi2sC&extension_id=32499 – marius-ciclistu Nov 21 '17 at 17:41