2017-07-14 77 views
0

我注意到,在opencart 2.3.0.2中,管理员的订单确认包含用户的评论,而用户获得的电子邮件则不包含评论。 用户仅通过评论获取文本版本,而不是带评论的HTML版本。为什么用户评论不在电子邮件订单确认html opencart 2?

2012年2013年的问题是,评论没有通过电子邮件。

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

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

看来问题只是部分解决。

回答

0

解决的办法是: 编辑: 目录/模型/结算/ 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'] = ''; 
      } 

或者可以安装这个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

+0

对于opencart 3.x的扩展可以b在这里找到(也为2.3.0.2):https://www.opencart.com/index.php?route=marketplace/extension/info&member_token=rVS1cd7Zf8CZoplGwHwr1rXxHvsHi2sC&extension_id=32499 –

相关问题