// Added order state color in order::getHistory()
This commit is contained in:
1 parent
c8347cbc59
commit
1870dd4dd2
2 files changed
+3
-3
No files matched your search
@@ -463,7 +463,7 @@ class OrderCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
$id_lang = $id_lang ? (int)($id_lang) : 'o.`id_lang`';
|
$id_lang = $id_lang ? (int)($id_lang) : 'o.`id_lang`';
|
||||||
$result = Db::getInstance()->executeS('
|
$result = Db::getInstance()->executeS('
|
||||||
SELECT oh.*, e.`firstname` AS employee_firstname, e.`lastname` AS employee_lastname, osl.`name` AS ostate_name
|
SELECT os.*, oh.*, e.`firstname` as employee_firstname, e.`lastname` as employee_lastname, osl.`name` as ostate_name
|
||||||
FROM `'._DB_PREFIX_.'orders` o
|
FROM `'._DB_PREFIX_.'orders` o
|
||||||
LEFT JOIN `'._DB_PREFIX_.'order_history` oh ON o.`id_order` = oh.`id_order`
|
LEFT JOIN `'._DB_PREFIX_.'order_history` oh ON o.`id_order` = oh.`id_order`
|
||||||
LEFT JOIN `'._DB_PREFIX_.'order_state` os ON os.`id_order_state` = oh.`id_order_state`
|
LEFT JOIN `'._DB_PREFIX_.'order_state` os ON os.`id_order_state` = oh.`id_order_state`
|
||||||
|
|||||||
@@ -168,9 +168,9 @@ class OrderDetailControllerCore extends FrontController
|
|||||||
$this->context->smarty->assign(array(
|
$this->context->smarty->assign(array(
|
||||||
'shop_name' => strval(Configuration::get('PS_SHOP_NAME')),
|
'shop_name' => strval(Configuration::get('PS_SHOP_NAME')),
|
||||||
'order' => $order,
|
'order' => $order,
|
||||||
'return_allowed' => (int)($order->isReturnable()),
|
'return_allowed' => (int)$order->isReturnable(),
|
||||||
'currency' => new Currency($order->id_currency),
|
'currency' => new Currency($order->id_currency),
|
||||||
'order_state' => (int)($id_order_state),
|
'order_state' => (int)$id_order_state,
|
||||||
'invoiceAllowed' => (int)(Configuration::get('PS_INVOICE')),
|
'invoiceAllowed' => (int)(Configuration::get('PS_INVOICE')),
|
||||||
'invoice' => (OrderState::invoiceAvailable($id_order_state) && count($order->getInvoicesCollection())),
|
'invoice' => (OrderState::invoiceAvailable($id_order_state) && count($order->getInvoicesCollection())),
|
||||||
'order_history' => $order->getHistory($this->context->language->id, false, true),
|
'order_history' => $order->getHistory($this->context->language->id, false, true),
|
||||||
|
|||||||
Reference in new issue
Block a user