Jump to content

Hide category


Guest Mysiteonline

Recommended Posts

:)

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 ;) >

Link to comment
Share on other sites

  • 2 years later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...