Added modification button display in all conditions.

This commit is contained in:
David 2017-12-29 15:52:23 +01:00
parent 81b74686cf
commit de0efe93eb

View File

@ -1427,9 +1427,9 @@ class AdminOrders extends AdminTab
</div>
<div class="col-md-4">
<h5 style="background:#504D8B;color:#fff;padding:5px; text-align:center;">
'.$order->printCarrier($order->id_carrier,array()).' Adresse Livraison
'.($cart->id_carrier!=(int)Configuration::get('ANT_CARRIER_DOM') && in_array($cart->id_carrier,$carriers_socol)?'<a style="color:#fff;cursor:pointer;" class="pull-right" id="changeAddress" data-url="scaddressedit.php?id_cart='.(int)$order->id_cart.'"><i class="glyphicon glyphicon-edit"></i></a>':'').'
'.(in_array($cart->id_carrier,$carriers_mr)?'<a style="color:#fff;cursor:pointer" class="pull-right" id="changeAddress" data-url="mraddressedit.php?id_cart='.(int)$order->id_cart.'"><i class="glyphicon glyphicon-edit"></i></a>':'').'
' . $order->printCarrier($order->id_carrier, array()) . ' Adresse Livraison
' . ($cart->id_carrier == (int)Configuration::get('ANT_CARRIER_DOM') || in_array($cart->id_carrier, $carriers_socol) ? '<a style="color:#fff;cursor:pointer;" class="pull-right" id="changeAddress" data-url="scaddressedit.php?id_cart=' . (int)$order->id_cart . '"><i class="glyphicon glyphicon-edit"></i></a>' : '') . '
' . (in_array($cart->id_carrier, $carriers_mr) ? '<a style="color:#fff;cursor:pointer" class="pull-right" id="changeAddress" data-url="mraddressedit.php?id_cart=' . (int)$order->id_cart . '"><i class="glyphicon glyphicon-edit"></i></a>' : '') . '
</h5>
<p style="padding:5px 20px;background:#efefef;">'.$data['order_address'].'</p>
</div>