public function getCarriersListByIdZone($id_country, $id_state = 0, $zipcode = 0) { // cookie saving/updating $this->context->cookie->id_country = $id_country; if ($id_state != 0) { $this->context->cookie->id_state = $id_state; } if ($zipcode != 0) { $this->context->cookie->postcode = $zipcode; } $id_zone = 0; if ($id_state != 0) { $id_zone = State::getIdZone($id_state); } if (!$id_zone) { $id_zone = Country::getIdZone($id_country); } $carriers = CarrierCompare::getCarriersByCountry($id_country, $id_state, $zipcode, $this->context->cart, $this->context->customer->id); return sizeof($carriers) ? $carriers : array(); }