diff --git a/admin-dev/tabs/AdminShop.php b/admin-dev/tabs/AdminShop.php index e62ef29fc..c44345b8c 100755 --- a/admin-dev/tabs/AdminShop.php +++ b/admin-dev/tabs/AdminShop.php @@ -43,11 +43,12 @@ class AdminShop extends AdminTab $this->_group = 'GROUP BY a.id_shop'; $this->fieldsDisplay = array( - 'id_shop' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), - 'name' => array('title' => $this->l('Shop'), 'width' => 130, 'filter_key' => 'b!name'), - 'group_shop_name' => array('title' => $this->l('Group Shop'), 'width' => 70), - 'category_name' => array('title' => $this->l('Category Root'), 'width' => 70), - 'active' => array('title' => $this->l('Enabled'), 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false, 'filter_key' => 'active')); + 'id_shop' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), + 'name' => array('title' => $this->l('Shop'), 'width' => 130, 'filter_key' => 'b!name'), + 'group_shop_name' => array('title' => $this->l('Group Shop'), 'width' => 70), + 'category_name' => array('title' => $this->l('Category Root'), 'width' => 70), + 'active' => array('title' => $this->l('Enabled'), 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false, 'filter_key' => 'active'), + ); $this->optionTitle = $this->l('Shops options'); $this->_fieldsOptions = array('PS_SHOP_DEFAULT' => array('title' => $this->l('Default shop:'), 'desc' => $this->l('The default shop'), 'cast' => 'intval', 'type' => 'select', 'identifier' => 'id_shop', 'list' => Shop::getShops(), 'visibility' => Shop::CONTEXT_ALL)); @@ -58,10 +59,7 @@ class AdminShop extends AdminTab public function afterAdd($newShop) { if (Tools::getValue('useImportData') && ($importData = Tools::getValue('importData')) && is_array($importData)) - { - $shop = new Shop((int)$newShop->id); - $shop->copyShopData((int)Tools::getValue('importFromShop'), $importData); - } + $newShop->copyShopData((int)Tools::getValue('importFromShop'), $importData); } public function postProcess() @@ -84,10 +82,10 @@ class AdminShop extends AdminTab if (!($obj = $this->loadObject(true))) return; - if (Shop::getTotalShops() > 1 AND $obj->id) + $disabled = ''; + if (Shop::getTotalShops() > 1 && $obj->id) $disabled = 'disabled="disabled"'; - else - $disabled = ''; + echo '
'; + '; + echo ''; + } + + echo ''; } protected function displayAddButton() diff --git a/admin-dev/tabs/AdminThemes.php b/admin-dev/tabs/AdminThemes.php index b736c6137..f5fd1406e 100644 --- a/admin-dev/tabs/AdminThemes.php +++ b/admin-dev/tabs/AdminThemes.php @@ -104,9 +104,6 @@ class AdminThemes extends AdminPreferences 'PS_STORES_ICON' => array('title' => $this->l('Store icon:'), 'desc' => $this->l('Will appear on the store locator (inside Google Maps)').'