Guest Mysiteonline Posted January 10, 2006 Share Posted January 10, 2006 Is there a way that i can remove a category from the main list so that the category can only be found if i offer a link to the category? Quote Link to comment Share on other sites More sharing options...
Guest Posted January 10, 2006 Share Posted January 10, 2006 This is possible I will take a look at the code see what i can knock up for you. Quote Link to comment Share on other sites More sharing options...
markscarts Posted January 10, 2006 Share Posted January 10, 2006 :) Sure, in includes/content/categories.inc.php Just replace this: $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0"); with $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0 AND cat_id <>14"); or $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0 AND cat_id !=14"); Changing the number 14 with the actual number of the category you want to exclude, of course <Coincidence - I just asked my partner convict this same question yesterday > Quote Link to comment Share on other sites More sharing options...
Guest Mysiteonline Posted January 10, 2006 Share Posted January 10, 2006 Many thanks works a treat. Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted January 10, 2006 Share Posted January 10, 2006 If i remember correctly Convict made a mod that can actually hides these :) Quote Link to comment Share on other sites More sharing options...
Guest jay019 Posted November 21, 2008 Share Posted November 21, 2008 Sorry to bump an old thread. I changed the code as shown to hide catagories but noticed that if they change the cat number in the get argument they can still see the "hidden" catagory. How would I go about changing the catagory page so that they just get an "unauthorized" type message? Cheers. Jay Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.