public static function getCarriersForOrder($id_zone, $groups = NULL, $theCart = NULL) { global $cookie, $cart; if (is_null($theCart)) { $theCart = $cart; } if (!Module::isInstalled('agilesellershipping')) { return parent::getCarriersForOrder($id_zone, $groups, $theCart); } if ($cookie->id_employee > 0) { return parent::getCarriersForOrder($id_zone, $groups, $theCart); } include_once _PS_ROOT_DIR_ . "/modules/agilesellershipping/agilesellershipping.php"; include_once _PS_ROOT_DIR_ . "/modules/agilesellershipping/SellerShipping.php"; $id_carrier = (int) Configuration::get('AGILE_SS_CARRIER_ID'); $id_zone = SellerShipping::getZoneID($theCart->id_address_delivery, $theCart->id_customer); $use_default_carrier = intval(Configuration::get('AGILE_SS_AS_DEFAULT_CARRIER')); $products_without_carrier = SellerShipping::products_without_carrier($id_zone, $theCart->id, $cookie->id_lang); if (!empty($products_without_carrier)) { return array(); } return SellerShipping::getLinkedCarriersForOrder($id_carrier, $id_zone); }