@@ -253,10 +253,10 @@ class BlockOrderSummary extends Module {
'.$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'])
?''
:(
- ($currentState->id != 8 && $currentState->id != 18 && !in_array((int)$cart->id_carrier, $carrier_socol))
+ ($currentState->id != 8 && $currentState->id != 18 && !$data['is_socol'])
?''
:''
)
@@ -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)
);