2017-07-14 72 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 –

相關問題