简体   繁体   English

Opencart 2.3订单历史记录在订单列表中的注释

[英]Opencart 2.3 order history comment in order list

Task: need to show last admin comment (order history) to a order list page. 任务:需要在订单列表页面上显示最后的管理员评论(订单历史记录)。 Add to a admin/controller/sale in function getList() $data['orders'][] = array code 在函数getList()中添加到管理员/控制器/销售中$ data ['orders'] [] =数组代码

'admin_comments'     => $this->model_sale_order->getOrderHistories('sale/order_history', 'token=' . $this->session->data['token'] . '&order_id=' . $result['order_id'])

But it does not work. 但这行不通。 How do I correctly get an array with the history of each order? 如何正确获取包含每个订单历史记录的数组? Thanks in advance 提前致谢

You are confusing building a URL with calling a function. 您在构建URL和调用函数时感到困惑。 You just need the latter. 您只需要后者。

'admin_comments'     => $this->model_sale_order->getOrderHistories(
                           $result['order_id']); 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM