// categories multishop improved

This commit is contained in:
vChabot
2012-01-24 09:30:32 +00:00
parent e7e1f411ae
commit 7e0a2ce15e
5 changed files with 28 additions and 9 deletions
+3 -1
View File
@@ -165,7 +165,9 @@ class HelperCore
);
$top_category = Category::getTopCategory();
$root_category = Category::getRootCategory();
$id_shop = Tools::isSubmit('id_shop') ? Tools::getValue('id_shop'): Configuration::get('PS_SHOP_DEFAULT');
$shop = new Shop($id_shop);
$root_category = Category::getRootCategory(null, $shop);
$disabled_categories[] = $top_category->id;
if (!$root)
$root = array('name' => $root_category->name, 'id_category' => $root_category->id);