View Single Post
  #1  
Old 09-07-2007, 09:20 PM
  shopccp's Avatar 
shopccp shopccp is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 35
 

Post Auto Display Sub-Categories under the Root Categories Menu

Does anyone know the smarty (database) code to display the subcategories under the categories menu as shown in my hor_categories.tpl?

The php code for the categories menu is shown in red. The section for the subcategories is shown in orange.

If anyone knows the database code to display the subcategories I would greatly appreicate it.


Code:
{* $Id: hor_categories.tpl,v 1.4.3.2 2007/05/12 12:15:08 max Exp $ *} {**** Horizontal categories ****} <script type="text/javascript"> {literal} function hcCheckCategories() {} {/literal} </script> {assign var="columns_num" value=#ColumnsInHM#} <div class="pdmenu"> <ul> <!-- CSS Tabs --> {foreach from=$categories item="category" name="h_categories" key="key"} {math equation="x+1" x=$hc_counter|default:"0" assign="hc_counter"} {if $hc_counter <= $columns_num } <li><a href="home.php?cat={$category.categoryid}" class="hcLink"><span>{$category.category}</span></a> <ul> <li><a href="" class="hcLink"><span></span></a></li> </ul> </li> {if $smarty.foreach.h_categories.last && !$js_enabled} {assign var="fit_all" value="Y"} {/if} {/if} {/foreach} {if !$fit_all }

Thanks for any help on this.
__________________
X-Cart Gold v4.4.4
Apache v2.2.20
PHP v5.3.8
MySQL v5.1.56-log
Linux kernel v2.6.18-238.19.1.el5xen
Reply With Quote