diff --git a/classes/Carrier.php b/classes/Carrier.php index 62d9dfb5c..ef4958daa 100644 --- a/classes/Carrier.php +++ b/classes/Carrier.php @@ -174,6 +174,7 @@ class CarrierCore extends ObjectModel $this->id_tax_rules_group = $this->getIdTaxRulesGroup(Context::getContext()); if ($this->name == '0') $this->name = Configuration::get('PS_SHOP_NAME'); + $this->image_dir = _PS_SHIP_IMG_DIR_; } public function add($autodate = true, $null_values = false) diff --git a/controllers/admin/AdminCarriersController.php b/controllers/admin/AdminCarriersController.php index 9919060f2..877905f51 100644 --- a/controllers/admin/AdminCarriersController.php +++ b/controllers/admin/AdminCarriersController.php @@ -484,7 +484,7 @@ class AdminCarriersControllerCore extends AdminController 'id_carrier' => (int)$current_carrier->id, 'carrier' => $new_carrier )); - + $new_carrier->deleteImage(); $this->postImage($new_carrier->id); $this->changeZones($new_carrier->id); $new_carrier->setTaxRulesGroup((int)Tools::getValue('id_tax_rules_group'));