customer service improvement

This commit is contained in:
azhar bhat
2026-01-21 17:17:38 +05:30
parent 1474ec2c61
commit fae6dff86f
13 changed files with 284 additions and 56 deletions

View File

@@ -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()
{