[+] BO : in order tab you have new information of new customer message

This commit is contained in:
vAugagneur
2012-09-04 08:24:39 +00:00
parent 2de487e5cd
commit 36aacc8b8a
4 changed files with 35 additions and 3 deletions
@@ -653,6 +653,12 @@ class AdminCustomerThreadsControllerCore extends AdminController
if (!$this->errors && $value)
Configuration::updateValue('PS_SAV_IMAP_OPT', implode('', $value));
}
}
public function ajaxProcessMarkAsRead()
{
$id_thread = Tools::getValue('id_thread');
$messages = CustomerThread::getMessageCustomerThreads($id_thread);
if (count($messages))
Db::getInstance()->execute('UPDATE '._DB_PREFIX_.'customer_message set `read` = 1');
}
}
@@ -1348,6 +1348,7 @@ class AdminOrdersControllerCore extends AdminController
'orders_total_paid_tax_incl' => $order->getOrdersTotalPaid(), // Get the sum of total_paid_tax_incl of the order with similar reference
'total_paid' => $order->getTotalPaid(),
'returns' => OrderReturn::getOrdersReturn($order->id_customer, $order->id),
'customer_thread_message' => CustomerThread::getCustomerMessages($order->id_customer, 0),
'orderMessages' => OrderMessage::getOrderMessages($order->id_lang),
'messages' => Message::getMessagesByOrderId($order->id, true),
'carrier' => new Carrier($order->id_carrier),