Opencart2.3 为什么用户评论不在电子邮件订单确认html opencart 2中?

Opencart2.3 为什么用户评论不在电子邮件订单确认html opencart 2中?,opencart2.3,Opencart2.3,我注意到在opencart 2.3.0.2中,管理员的订单确认包含用户的评论,而用户收到的电子邮件则没有。 用户只获取带有注释的文本版本,而不获取带有注释的HTML版本 2012年和2013年的问题是,该评论根本没有被发送到电子邮件中 问题似乎只解决了一部分。解决方案是: 编辑: catalog/model/checkout/order.php 请输入以下代码: $data['ip'] = $order_info['ip']; $data['o

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

2012年和2013年的问题是,该评论根本没有被发送到电子邮件中

问题似乎只解决了一部分。

解决方案是: 编辑: 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'] = '';
                    }
            }

或者,您可以为opencart 3.x安装此mod

,可以在此处找到扩展(也可以在2.3.0.2中找到):
            $data['ip'] = $order_info['ip'];
            $data['order_status'] = $order_status;

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