bug fixes
This commit is contained in:
parent
537eb9f490
commit
ed05b99b65
@ -194,8 +194,8 @@ class BlockOrderSummary extends Module {
|
||||
WHERE od.`id_order` ='. (int)$params['order']->id
|
||||
);
|
||||
//$carrier_socol = array(38,40,45);// local
|
||||
//$carrier_socol = array(45,47,48);// dev
|
||||
$carrier_socol = array(87,88,89);// prod
|
||||
$carrier_socol = array(45,47,48);// dev
|
||||
//$carrier_socol = array(87,88,89);// prod
|
||||
echo '<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
|
||||
<div id="blockordersummary">
|
||||
<div class="content">
|
||||
@ -253,10 +253,10 @@ class BlockOrderSummary extends Module {
|
||||
<div>
|
||||
<h5>'.$this->l('My shipping address').' '.
|
||||
(
|
||||
($currentState->id != 8 && $currentState->id != 18 && in_array((int)$cart->id_carrier, $carrier_socol))
|
||||
($currentState->id != 8 && $currentState->id != 18 && $data['is_socol'])
|
||||
?'<a id="modif_address" data-url="scaddressedit.php?id_cart='.(int)$params['order']->id_cart.'"><span class="anticon anticon-pencil" style="font-size: 16px; vertical-align: baseline;cursor:pointer;"></span></a>'
|
||||
:(
|
||||
($currentState->id != 8 && $currentState->id != 18 && !in_array((int)$cart->id_carrier, $carrier_socol))
|
||||
($currentState->id != 8 && $currentState->id != 18 && !$data['is_socol'])
|
||||
?'<a href="?tab=AdminAddresses&id_address='.$addressDelivery->id.'&addaddress&realedit=1&id_order='.$params['order']->id.($addressDelivery->id == $addressInvoice->id ? '&address_type=1' : '').'&token='.Tools::getAdminToken('AdminAddresses'.(int)(Tab::getIdFromClassName('AdminAddresses')).(int)($cookie->id_employee)).'&back='.urlencode($_SERVER['REQUEST_URI']).'"><span class="anticon anticon-pencil" style="font-size: 16px; vertical-align: baseline;cursor:pointer;"></span></a>'
|
||||
:''
|
||||
)
|
||||
@ -316,10 +316,13 @@ class BlockOrderSummary extends Module {
|
||||
!empty($socol['cedoorcode2'])? 'Code porte 2 : '.$socol['cedoorcode2']: '',
|
||||
$socol['cedeliveryinformation'],
|
||||
))));
|
||||
$is_socol = true;
|
||||
} else {
|
||||
$is_socol = false;
|
||||
$order_address = nl2br(AddressFormat::generateAddress(new Address((int) $cart->id_address_delivery)));
|
||||
}
|
||||
} else {
|
||||
$is_socol = false;
|
||||
$order_address = nl2br(AddressFormat::generateAddress(new Address((int) $cart->id_address_delivery)));
|
||||
}
|
||||
|
||||
@ -373,6 +376,7 @@ class BlockOrderSummary extends Module {
|
||||
return array(
|
||||
'order_address' => $order_address,
|
||||
'carrier_name' => $carrier_name,
|
||||
'is_socol' => $is_socol,
|
||||
'delay_name' => $delay_name,
|
||||
'delivery_date' => (isset($delivery_date)?$delivery_date:null)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user