category listing help?
is it possible to have my catagory listing list all catagories except for one of them? I would like to put one catagory link in a different part of the website and not be shown on the catagory list.
the catagory id is 3, how can i wright the loop to not include this catagory? I have the cart enabled to use the first loop. here is the code from my customer/categories.tpl Code:
Sorry if this is a very basic question, but i have only been playing with php and smarty for 2 weeks. Thanks in advance for your reply. |
Make the category only available to a certain membership ;)
|
Thanks BOOMER, but I still want all memberships to be able to view this catagory, If it helps i am making a section for manufactures list, with a drop down box of the manufactures, i do not want "manufactures list" included in the main menu of catagories?
is that possible, or do i just need to take the loop out and write my own links there? |
Hi,
Simply need to put in an if statement at the begginning that rules out a certain category. In this example it rules out category 8. Code:
{if $config.General.root_categories eq "Y"} |
Thank you Thank you!!, That works perfect.
|
Using 3.4.9 could really use a hand with this.
Can't seem to make the code above work. I keep getting smarty errors in the store. Rather than showing you every dumb combination I have tried and failed with, could someone mark up my code and give me a point in the right direction? I really need to break up my categories. Code:
{* $Id: categories.tpl,v 1.18 2003/02/25 08:58:46 olga Exp $ *} TIA. |
Try:
Code:
{* $Id: categories.tpl,v 1.18 2003/02/25 08:58:46 olga Exp $ *} |
FD,
Thank you so much. It works like a dream. Any idea how to take out multiple categories? I tried a few different combos and we were back to errors again. I think I should be combining them in this statement Code:
{if $categories[cat_num].categoryid eq 8} |
All times are GMT -8. The time now is 03:34 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.