View Single Post
  #20  
Old 11-18-2004, 10:16 AM
  joshf's Avatar 
joshf joshf is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 97
 

Default Always display subcategories in 4.0.x

Here's what worked for me in 4.0.x:

In skin1/customer/categories.tpl:

1. Find the following line:
Code:
<FONT class="CategoriesList">{$categories[cat_num].category}</FONT>
2. Insert the following code AFTER the line you just found:
Code:
{section name=sub_num loop=$allcategories} {if $allcategories[sub_num].parentid == $categories[cat_num].categoryid} <FONT class="CategoriesList">- {$allcategories[sub_num].category}</font> {/if} {/section}
3. Save and refresh.


One,
jf
__________________
joshf | X-Cart Portfolio
Currently: http://nightowlpapergoods.com | http://pinkolive.com
Reply With Quote