registerCategoryTreeSection(); } protected function render() { $settings = $this->getSettings(); $category = $this->getRootCategory($settings['root_category']); $tpl = 'ps_categorytree/views/templates/hook/ps_categorytree.tpl'; $theme_tpl = _PS_THEME_DIR_ . 'modules/' . $tpl; $this->context->smarty->assign([ 'currentCategory' => $category->id, 'categories' => $this->getCategoryTree($category, $settings), ]); echo $this->context->smarty->fetch(file_exists($theme_tpl) ? $theme_tpl : _PS_MODULE_DIR_ . $tpl); } }