View Single Post
  #13  
Old 06-22-2007, 07:15 AM
 
Widerimagellc Widerimagellc is offline
 

Member
  
Join Date: Dec 2006
Location: Pittsburgh, PA
Posts: 23
 

Default Re: Exclude Certain Categories From Category List

Quote:
Originally Posted by balinor
Welcome to X-Cart! Please be sure to post your full version in your signature (i.e. 4.0.1. Each version is different, and this information is very important.

You can use the orderby function to solve your issue. Use an {if} statement like this to only show categories with an orderby under 500:

{if $categories[cat_num].order_by < 500}

This would go in customer/categories.tpl



I have tried this if statement all throughout my categories.tpl and i just keep getting an error can some please help on where exactly to put this. Thanks so much

here is my categories.tpl

{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *}
{capture name=menu}
{if $active_modules.Fancy_Categories ne ""}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="fc_cellpadding" value="0"}
{else}
{if $config.General.root_categories eq "Y"}
<div class="categories">
{foreach from=$categories item=c}
<a href="home.php?cat={$c.categoryid}">{$c.category}< /a>
{/foreach}
</div>
{else}
<div class="categories">
{foreach from=$subcategories item=c key=catid}
<a href="home.php?cat={$catid}">{$c.category}</a>
{/foreach}
</div>
{/if}
{/if}
{/capture}
{ include file="menu_cat.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}
__________________
www.widerimage.com
XCART version 4.1.8
Reply With Quote