public function uninstall() { require_once _DPDPOLAND_CONTROLLERS_DIR_ . 'service.php'; require_once _DPDPOLAND_CONTROLLERS_DIR_ . 'dpd_classic.service.php'; require_once _DPDPOLAND_CONTROLLERS_DIR_ . 'dpd_standard.service.php'; require_once _DPDPOLAND_CONTROLLERS_DIR_ . 'dpd_standard_cod.service.php'; return parent::uninstall() && DpdPolandCarrierClassicService::delete() && DpdPolandCarrierStandardService::delete() && DpdPolandCarrierStandardCODService::delete() && DpdPolandConfiguration::deleteConfiguration() && $this->dropTables() && Configuration::deleteByName(DpdPolandWS::DEBUG_FILENAME); }
public function createDeleteCarriers() { require_once _DPDPOLAND_CONTROLLERS_DIR_ . 'service.php'; require_once _DPDPOLAND_CONTROLLERS_DIR_ . 'dpd_classic.service.php'; require_once _DPDPOLAND_CONTROLLERS_DIR_ . 'dpd_standard.service.php'; require_once _DPDPOLAND_CONTROLLERS_DIR_ . 'dpd_standard_cod.service.php'; if (Tools::getValue(DpdPolandConfiguration::CARRIER_CLASSIC)) { if (!DpdPolandCarrierClassicService::install()) { self::$errors[] = $this->l('Could not save DPD international shipment (DPD Classic) service'); } } else { if (!DpdPolandCarrierClassicService::delete()) { self::$errors[] = $this->l('Could not delete DPD international shipment (DPD Classic) service'); } } if (Tools::getValue(DpdPolandConfiguration::CARRIER_STANDARD)) { if (!DpdPolandCarrierStandardService::install()) { self::$errors[] = $this->l('Could not save DPD domestic shipment - Standard service'); } } else { if (!DpdPolandCarrierStandardService::delete()) { self::$errors[] = $this->l('Could not delete DPD domestic shipment - Standard service'); } } if (Tools::getValue(DpdPolandConfiguration::CARRIER_STANDARD_COD)) { if (!DpdPolandCarrierStandardCODService::install()) { self::$errors[] = $this->l('Could not save DPD domestic shipment - Standard with COD service'); } } else { if (!DpdPolandCarrierStandardCODService::delete()) { self::$errors[] = $this->l('Could not delete DPD domestic shipment - Standard with COD service'); } } }