diff --git a/blockcategories.php b/blockcategories.php index 5a9f524..fa2af1c 100644 --- a/blockcategories.php +++ b/blockcategories.php @@ -230,7 +230,7 @@ public function hookLeftColumn($params) } $blockCategTree = $this->getTree($resultParents, $resultIds, $maxdepth, ($category ? $category->id : null)); - $this->smarty->assign('blockCategTree', $blockCategTree); + $this->smarty->assign(array('blockCategTree' => $blockCategTree, 'startingCategory' => $category)); if ((Tools::getValue('id_product') || Tools::getValue('id_category')) && isset($this->context->cookie->last_visited_category) && $this->context->cookie->last_visited_category) { diff --git a/blockcategories.tpl b/blockcategories.tpl index 3331d85..8c149a1 100644 --- a/blockcategories.tpl +++ b/blockcategories.tpl @@ -25,7 +25,7 @@ {if $blockCategTree && $blockCategTree.children|@count}