View Single Post
  #6  
Old 11-11-2011, 06:27 AM
  David-Allan's Avatar 
David-Allan David-Allan is offline
 

eXpert
  
Join Date: Oct 2011
Location: Scotland, UK
Posts: 313
 

Smile Re: New section with popular categories

Quote:
Originally Posted by JWait
You might try something like this in common_files/customer/categories.tpl...
Code:
{foreach from=$categories_menu_list item=c name=categories} {if $categories[cat_num].categoryid neq XXX} <li{interline name=categories}><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category|amp}</a></li> {/if} {/foreach}
You should be able to get the cat_num and cat id from the "Categories" section in admin.

There are 3rd party mods that will hide categories.

Check this thread for a possible solution....
http://forum.x-cart.com/showthread.php?t=44414

You might check this thread for a different solution...
http://forum.x-cart.com/showthread.php?t=52493&page=2

Thanks mate getting closer to what I need with your help

I have just turned off flyout categories as it seems too complicated to try and get this working with those. I had a look at the code and it looks very complicated.

This is the code I have used but it doesn't seem to work. It actually doesn't seem to do anything. I dont know if I have missed something.

I have it on my live site at the moment. www.robertsonpackaging.com

Here is the code I used

Code:
<ul> {foreach from=$categories_menu_list item=c name=categories} {if $categories[cat_num].categoryid neq 199 || $categories[cat_num].categoryid neq 74 || $categories[cat_num].categoryid neq 246 || $categories[cat_num].categoryid neq 43} <li{interline name=categories}><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category|amp}</a></li> {/if}} {/foreach} </ul>

:w
__________________
Live Version : 4.5.2
Licensed Products:
X-Cart Gold
Ability Theme
CDSEO
xCMS
Abandoned Cart
Food Packaging Scotland
Reply With Quote