View Single Post
  #1  
Old 09-22-2011, 02:56 AM
 
gatordp gatordp is offline
 

Advanced Member
  
Join Date: Aug 2009
Posts: 72
 

Default Exclude Certain Categories From Category List

I saw this thread in the 4.1x forums
http://forum.x-cart.com/showthread.php?t=23766&highlight=Exclude+Certain+C ategories+From+Category+List

But I tried it, and it did not on 4.2.2. Basically you assign a category you want to exclude with a high Category ID, like 500. Then you add an "if statement" to the categories.tpl file saying if category ID is > 500 then exclude.

Does anyone know how to do this?

Here is my categories.tpl

Code:
{* $Id: categories.tpl,v 1.33 2008/11/06 16:53:53 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {capture name=menu} {if $active_modules.Fancy_Categories} {include file="modules/Fancy_Categories/categories.tpl"} {assign var="additional_class" value="menu-fancy-categories-list"} {else} <ul class="nav_list"> {foreach from=$categories_menu_list item=c} {if $c.avail ne "H"} <li><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category}</a></li> {/if} {/foreach} </ul> {assign var="additional_class" value="menu-categories-list"} {/if} {/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu}
__________________
X-Cart Gold 4.5.4
Reply With Quote