order comes from appli information

This commit is contained in:
Marion Muszynski 2017-11-21 14:28:24 +01:00
parent 60b061fc47
commit b1b63b937d

View File

@ -1159,7 +1159,7 @@ class AdminOrders extends AdminTab
<div class="col-md-6">
<div class="panel">
<div class="panel-title">
<h2>'.$this->_displayStateIcon($currentStateTab['id_order_state'],stripslashes($row['ostate_name'])).' <span style="font-size:12px;">(<b>'.Tools::displayDate($row['date_add'], (int)($cookie->id_lang), true).'</b> '.((!empty($row['employee_lastname'])) ? ' - '.stripslashes(Tools::substr($row['employee_firstname'], 0, 1)).'. '.stripslashes($row['employee_lastname']).'' : '').')</span></h2>
<h2>'.$this->_displayStateIcon($currentStateTab['id_order_state'],stripslashes($row['ostate_name'])).' <span style="font-size:12px;">(<b>'.Tools::displayDate($row['date_add'], (int)($cookie->id_lang), true).'</b>'.((!empty($row['employee_lastname'])) ? ' - '.stripslashes(Tools::substr($row['employee_firstname'], 0, 1)).'. '.stripslashes($row['employee_lastname']).'' : '').')</span></h2>
<div class="clearfix"></div>
</div>
<div class="panel-content">
@ -1291,7 +1291,7 @@ class AdminOrders extends AdminTab
<div class="row">
<div class="col-md-6" style="padding-right:0;">
<div style="background:#efefef;padding:10px;">
'.($order->appli?'<p style="margin-bottom:0px;"><span class="anticon anticon-apple"></span> <span class="anticon anticon-android"></span> '.$this->l('Commande faite via l\'appli').'</p>':'').'
'.($order->appli?'<p style="margin-bottom:0px;"><span class="anticon anticon-mobile"></span> '.$this->l('Commande faite via l\'appli').'</p>':'').'
<p style="margin-bottom:0px;"><span class="anticon anticon-credit-card"></span> '.Tools::substr($order->payment, 0, 32).' '.($order->module ? '('.$order->module.')' : '').'</p>
<p><span class="anticon anticon-cart"></span> <a href="?tab=AdminCarts&id_cart='.$cart->id.'&viewcart&token='.Tools::getAdminToken('AdminCarts'.(int)(Tab::getIdFromClassName('AdminCarts')).(int)($cookie->id_employee)).'">'.$this->l('Cart #').sprintf('%06d', $cart->id).'</a></p>
<p style="margin-bottom:0px;"><span class="anticon anticon-cross '.($order->recyclable ? 'text-green-light' : 'text-rose').'"></span> '.$this->l('Recycled package').'</p>