View Single Post
  #4  
Old 12-01-2002, 02:57 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Hi,

Simply need to put in an if statement at the begginning that rules out a certain category. In this example it rules out category 8.

Code:
{if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} {if $categories[cat_num].categoryid eq 8} {else} { $categories[cat_num].category|escape } {/section} {else} {section name=cat_num loop=$subcategories} { $subcategories[cat_num].category|escape } {/if} {/section} {/if}
__________________
ex x-cart guru
Reply With Quote