I had my home page redone to put the categories on top instead of on the side. Using code from
stackoverflow.com I was able to show subcategories together with parent categories. I need to go down a level or two, and can't seem to figure it out. Any ideas?
The code I used is below:
in include/common.php, I added the following under "Get categories menu data
Code:
+
+ if (!isset($cat) || 0 == intval($cat)) {
+ $extended_categories = func_get_categories_list(0, true, true, 1);
+
+ if (!empty($extended_categories)) {
+ $smarty->assign('extended_categories_list', $extended_categories);
+ }
+ }
and in /common_files/customer/categories.tpl, I added
Code:
<ul>
{foreach from=$categories_menu_list item=c}
<li><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}"><strong>{$c.category}</strong></a>
<!-- list subcategories here-->
{foreach from=$extended_categories_list item=ec}
{if $ec.parentid eq $c.categoryid}<li><a href="home.php?cat={$ec.categoryid}" style="font-size:10px;">{$ec.category|escape}</a></li>{/if}
{/foreach}
{/foreach}
</ul>
What do I do to go down further levels??