diff --git a/admin-dev/themes/default/template/controllers/carrier_wizard/summary.tpl b/admin-dev/themes/default/template/controllers/carrier_wizard/summary.tpl index 42cfd89af..fab7260ab 100644 --- a/admin-dev/themes/default/template/controllers/carrier_wizard/summary.tpl +++ b/admin-dev/themes/default/template/controllers/carrier_wizard/summary.tpl @@ -55,9 +55,11 @@ {l s='It will be displayed only for the following groups:'} + {if $is_multishop}
 
{l s='It will be displayed only for the following shops:'}
+ {/if} diff --git a/classes/Carrier.php b/classes/Carrier.php index b32a19397..9f8f8b8a5 100644 --- a/classes/Carrier.php +++ b/classes/Carrier.php @@ -1300,4 +1300,3 @@ class CarrierCore extends ObjectModel return Db::getInstance()->execute(rtrim($sql, ',')); } } - diff --git a/controllers/admin/AdminCarrierWizardController.php b/controllers/admin/AdminCarrierWizardController.php index 54d221c3b..ac95b60fc 100644 --- a/controllers/admin/AdminCarrierWizardController.php +++ b/controllers/admin/AdminCarrierWizardController.php @@ -533,7 +533,7 @@ class AdminCarrierWizardControllerCore extends AdminController $template->assign('fields_value', $fields_value); $template->assign('input', array('type' => 'zone', 'name' => 'zones' )); - die ($template->fetch()); + die($template->fetch()); } public function ajaxProcessValidateStep() @@ -545,7 +545,6 @@ class AdminCarrierWizardControllerCore extends AdminController $this->errors[] = Tools::displayError('You do not have permission to use this wizard.'); else { - if (Shop::isFeatureActive() && $step_number == 2) { if (!Tools::getValue('checkBoxShopAsso_carrier')) @@ -658,8 +657,7 @@ class AdminCarrierWizardControllerCore extends AdminController $return['errors'][] = Tools::displayError('You do not have permission to use this wizard.') ); else - { - + { if ($id_carrier = Tools::getValue('id_carrier')) { $current_carrier = new Carrier((int)$id_carrier); @@ -687,6 +685,7 @@ class AdminCarrierWizardControllerCore extends AdminController $return['errors'][] = $this->l('An error occurred while saving this carrier.'); } } + if (Validate::isLoadedObject($carrier)) { if (!$this->changeGroups((int)$carrier->id))