| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Exclude Certain Categories From Category List | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
thanks!
__________________
version 4.0.18 |
|||||||||
#12
|
|||||||
|
|||||||
Re: Exclude Certain Categories From Category List
Quote:
does this work for 4.1.7
__________________
yages x-cart version 4.5.5 |
|||||||
#13
|
|||||||
|
|||||||
Re: Exclude Certain Categories From Category List
Quote:
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} |
|||||||
#14
|
|||||||
|
|||||||
Re: Exclude Certain Categories From Category List
Nevermind, I think,
here is my new categories.tpl code and this seems to be working...... {* $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} {if $c.order_by < 500} <a href="home.php?cat={$c.categoryid}">{$c.category}< /a> {/if}{/foreach} </div> {else} <div class="categories"> {foreach from=$subcategories item=c key=catid} {if $c.order_by < 500} <a href="home.php?cat={$catid}">{$c.category}</a> {/if}{/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} |
|||||||
#15
|
|||||||
|
|||||||
Re: Exclude Certain Categories From Category List
Quote:
Thank you so much for posting that - I needed to do the same thing and it worked great!
__________________
www.littlelizard.com X-Cart version 4.1.8 |
|||||||
|
|||
X-Cart forums © 2001-2020
|