customer service improvement
This commit is contained in:
@@ -90,6 +90,14 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
||||
'align' => 'center',
|
||||
'class' => 'fixed-width-xs'
|
||||
),
|
||||
'id_order' => array(
|
||||
'title' => $this->l('ID Order'),
|
||||
'filter_key' => 'a!id_order',
|
||||
'align' => 'center',
|
||||
'optional' => true,
|
||||
'callback' => 'getOrderLink',
|
||||
'visible_default' => true,
|
||||
),
|
||||
'customer' => array(
|
||||
'title' => $this->l('Customer'),
|
||||
'filter_key' => 'customer',
|
||||
@@ -172,13 +180,6 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
||||
'type' => 'datetime',
|
||||
'optional' => true,
|
||||
),
|
||||
'id_order' => array(
|
||||
'title' => $this->l('ID Order'),
|
||||
'filter_key' => 'a!id_order',
|
||||
'optional' => false,
|
||||
'visible_default' => false,
|
||||
'displayed' => false,
|
||||
),
|
||||
);
|
||||
|
||||
$this->bulk_actions = array(
|
||||
@@ -346,6 +347,14 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
||||
|
||||
return $customer;
|
||||
}
|
||||
public function getOrderLink($order, $tr)
|
||||
{
|
||||
if ($tr['id_order']) {
|
||||
return '<a href="'.$this->context->link->getAdminLink('AdminOrders').'&vieworder&id_order='.$tr['id_order'].'">'.'#'.$order.'</a>';
|
||||
}else{
|
||||
return '--';
|
||||
}
|
||||
}
|
||||
|
||||
public function setMedia()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user