diff --git a/override/classes/PaymentModule.php b/override/classes/PaymentModule.php index f8694789..49c008c3 100755 --- a/override/classes/PaymentModule.php +++ b/override/classes/PaymentModule.php @@ -375,11 +375,11 @@ 'DOM' => '

Recibirás un email con el número de seguimiento de tu pedido 48h antes.

', ) ); - if ($carrier->id == (int)Configuration::get('ANT_CARRIER_DOM') || $carrier->id == (int)Configuration::get('ANT_CARRIER_DROP')) { + if ((int)$order->id_carrier == (int)Configuration::get('ANT_CARRIER_DOM') || (int)$order->id_carrier == (int)Configuration::get('ANT_CARRIER_DROP')) { $delivery_carrier = 'DOM'; - } elseif (in_array($carrier->id, array_map('intval',explode(',', Configuration::get('ANT_CARRIERS_SOCOL'))))) { + } elseif (in_array((int)$order->id_carrier, array_map('intval',explode(',', Configuration::get('ANT_CARRIERS_SOCOL'))))) { $delivery_carrier = 'SOCOL_OOH'; - } elseif (in_array($carrier->id, array_map('intval',explode(',', Configuration::get('ANT_CARRIERS_MR'))))) { + } elseif (in_array((int)$order->id_carrier, array_map('intval',explode(',', Configuration::get('ANT_CARRIERS_MR'))))) { $delivery_carrier = 'MR'; } else { $delivery_carrier = 'DOM' @@ -414,7 +414,7 @@ ON m.`id_mr_method` = s.`id_method` LEFT JOIN `' . _DB_PREFIX_ . 'country` c ON c.`iso_code` = s.`MR_Selected_Pays` - WHERE m.`id_carrier` = ' . (int) $carrier->id . ' + WHERE m.`id_carrier` = ' . (int) $order->id_carrier . ' AND s.`id_cart` = ' . (int) $order->id_cart . ' AND m.`id_mr_method` IS NOT NULL ')) {