Expanding menu code |
Post Reply |
Author | |
lelady
Newbie Joined: 22-November-2005 Location: United States Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 24-November-2005 at 12:33am |
I've been using the expanding menu code located in the developers corner for sometime with good results. However, I would like to "exclude" a catagory or two from being displayed. Has anyone had any luck modifying this code or would any of the developers be interested in doing this?
|
|
bkats
Newbie Joined: 24-November-2005 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Can you use the "Hide Category" feature? |
|
lelady
Newbie Joined: 22-November-2005 Location: United States Status: Offline Points: 5 |
Post Options
Thanks(0)
|
I did try that. Unfortunately, if I use the hide catagory option, and I place a link to this specific catagory in another area, when you click on it you receive an error message that the catagory does not exist.
|
|
Nothing
Newbie Joined: 02-November-2005 Location: Canada Status: Offline Points: 0 |
Post Options
Thanks(0)
|
The below code removed an item from the menu on my site. I’m
using ProductCart v2.75g12a16. Without getting too deep into the matter, I would
think that you might run into many other issues around your site. The menu item(s) would
still appear on ‘generating a static site index’… the search results would
still display items in the hidden categories.. etc etc. etc. Find the file “inc_catsmenuA.asp” in the /pc/ folder Go to line 109 I wanted to remove category 3 so I changed line 109 from this: query="select idcategory,categorydesc from categories where idParentCategory=1 and idCategory>1 and iBTOhide=0 " & pcv_strTemp & " ORDER BY priority, categoryDesc ASC" to this: query="select idcategory,categorydesc from categories where idParentCategory=1 and idCategory<>3 and idCategory>1 and iBTOhide=0 " & pcv_strTemp & " ORDER BY priority, categoryDesc ASC" to remove category 3 and 7 you could try: query="select idcategory,categorydesc from categories where idParentCategory=1 and idCategory<>3 and idCategory<>7 and idCategory>1 and iBTOhide=0 " & pcv_strTemp & " ORDER BY priority, categoryDesc ASC" you might also want to check the latest version of Product
Cart. Maybe it addresses your issues? also, if any database techies can see a reason NOT to use the above code please speak up! hope it helps nothing |
|
lelady
Newbie Joined: 22-November-2005 Location: United States Status: Offline Points: 5 |
Post Options
Thanks(0)
|
I don't want the category hidden from customers in general, just from a particular menu I have on the site- this way I can create a couple of different expanding menus for different types of things. I did a quick test on my local server and it appears to be exactly what I was looking for! Thank you!!! I love these forums!!!!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |