1

我注意到在 opencart 2.3.0.2 中,管理员的订单确认包含来自用户的评论,而用户收到的电子邮件却没有。用户只获得带有评论的文本版本,而不是带有评论的 HTML 版本。

在 2012 年 2013 年,问题是评论根本没有传递到电子邮件中。

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

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

看来问题只是部分解决了。

4

1 回答 1

1

解决方案是:编辑:catalog/model/checkout/order.php

把这段代码:

            $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'] = '';
                    }
            }

代替:

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

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

或者你可以安装这个模组https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=32499&filter_search=add%20comment&filter_category_id=8&filter_license=0

于 2017-07-14T14:44:41.410 回答