From 59c4f5489d8d10dfd791ccdb8c86162e2df090ac Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 11 Aug 2011 09:38:24 +0000 Subject: [PATCH] // Fix on shops + remove id_group_shop from stock + fix stock --- admin-dev/tabs/AdminGroupShop.php | 4 +- admin-dev/tabs/AdminGroups.php | 9 ++-- admin-dev/tabs/AdminModulesPositions.php | 2 +- admin-dev/tabs/AdminShop.php | 22 ++++++--- admin-dev/tabs/AdminStockMvt.php | 2 +- classes/AdminTab.php | 8 ++- classes/Attribute.php | 2 +- classes/Link.php | 2 +- classes/Product.php | 13 +++-- classes/Shop.php | 62 +++++++++--------------- classes/Tools.php | 2 +- install-dev/sql/db.sql | 6 +-- install-dev/sql/db_settings_extends.sql | 62 ++++++++++++------------ install-dev/sql/upgrade/1.5.0.0.sql | 10 ++-- js/admin.js | 11 +++-- modules/mailalerts/mailalerts.php | 2 +- 16 files changed, 110 insertions(+), 109 deletions(-) diff --git a/admin-dev/tabs/AdminGroupShop.php b/admin-dev/tabs/AdminGroupShop.php index 97cb09797..e0ac59eee 100755 --- a/admin-dev/tabs/AdminGroupShop.php +++ b/admin-dev/tabs/AdminGroupShop.php @@ -50,9 +50,9 @@ class AdminGroupShop extends AdminTab if (Tools::isSubmit('delete'.$this->table) OR Tools::isSubmit('status') OR Tools::isSubmit('status'.$this->table)) { $object = $this->loadObject(); - if(GroupShop::getTotalGroupShops() == 1) + if (GroupShop::getTotalGroupShops() == 1) $this->_errors[] = Tools::displayError('You cannot delete or disable the last groupshop.'); - elseif($object->haveShops()) + else if ($object->haveShops()) $this->_errors[] = Tools::displayError('You cannot delete or disable a groupshop which have this shops using it.'); if (sizeof($this->_errors)) diff --git a/admin-dev/tabs/AdminGroups.php b/admin-dev/tabs/AdminGroups.php index a8c983c00..ba1e6c41c 100644 --- a/admin-dev/tabs/AdminGroups.php +++ b/admin-dev/tabs/AdminGroups.php @@ -121,17 +121,16 @@ class AdminGroups extends AdminTab

'.$this->l('How the prices are displayed on order summary for this customer group (tax included or excluded).').'

-
 
-
- -
'; +
 
'; if (Shop::isMultiShopActivated()) { echo '
'; $this->displayAssoShop('group_shop'); echo '
'; } - echo ' + echo '
+ +
* '.$this->l('Required field').'

'; diff --git a/admin-dev/tabs/AdminModulesPositions.php b/admin-dev/tabs/AdminModulesPositions.php index 81cf8d2c2..c14a7a9ac 100644 --- a/admin-dev/tabs/AdminModulesPositions.php +++ b/admin-dev/tabs/AdminModulesPositions.php @@ -257,7 +257,7 @@ class AdminModulesPositions extends AdminTab else echo '

'.$this->l('By clicking here you will be redirected to the front office of your shop to move and delete modules directly.').'


- '.$this->l('Run LiveEdit').''; + '.$this->l('Run LiveEdit').''; echo ''; // Print hook list diff --git a/admin-dev/tabs/AdminShop.php b/admin-dev/tabs/AdminShop.php index 946a4dc46..a5c2630ec 100755 --- a/admin-dev/tabs/AdminShop.php +++ b/admin-dev/tabs/AdminShop.php @@ -102,13 +102,21 @@ class AdminShop extends AdminTab -
- -
'; +
'; + if ($disabled) + { + $groupShop = new GroupShop($obj->id_group_shop); + echo $groupShop->name; + echo ''; + } + else + { + echo ''; + } + echo '
'; echo '