![]() |
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:
{* |
Re: Exclude Certain Categories From Category List
Why not make your if
{if $c.categoryid lt 500} |
Re: Exclude Certain Categories From Category List
It will be easier to control using the position rather than the categoryid. You can set the position number in the category administration page. Your if/than inside the loop will be based on $c.order_by
--- |
Re: Exclude Certain Categories From Category List
Do you know what the piece of if code should look like?
I tried this: {if $c.order_by < 500} And got a smarty error meesage Code:
{* |
Re: Exclude Certain Categories From Category List
Use smarty operators
> - gt < - lt >= - gte <= - lte = - eq != - ne |
Re: Exclude Certain Categories From Category List
You left the old IF in the code - remove it.
{if $c.avail ne "H"} |
Re: Exclude Certain Categories From Category List
That worked - thanks!
|
All times are GMT -8. The time now is 07:03 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.