This commit is contained in:
Jerome Nadaud
2013-09-11 20:41:14 +02:00
parent ab8d5bc265
commit e9dbadcabf
20 changed files with 587 additions and 285 deletions
+13 -1
View File
@@ -89,7 +89,18 @@ class HelperFormCore extends Helper
case 'categories':
if ($categories)
{
$this->context->smarty->assign('categories_tree', $params['categories_tree']);
$tree = new HelperTreeCategories($params['tree']['id'], isset($params['tree']['title']) ? $params['tree']['title'] : null);
if (isset($params['tree']['selected_categories']))
$tree->setSelectedCategories($params['tree']['selected_categories']);
if (isset($params['tree']['disabled_categories']))
$tree->setDisabledCategories($params['tree']['disabled_categories']);
if (isset($params['tree']['root_category']))
$tree->setRootCategory($params['tree']['root_category']);
$this->context->smarty->assign('categories_tree', $tree->render());
$categories = false;
}
break;
@@ -216,6 +227,7 @@ class HelperFormCore extends Helper
}
}
$tpl = $this->createTemplate('assoshop.tpl');
$tree = Shop::getTree();
$nb_shop = 0;