Jump to content

How to hide old product categories?


Guest spanishben

Recommended Posts

Guest spanishben

Hi, I have a number of products that I don't want my customers to find any more but I wish to keep in the system so that they appear in my stats mod statistics. So far I have put this into a new category that is not linked to on the site. However, a couple of clever people have found this category by changing the cat number at the end of the cat url (http://www.site.com/store/index.php?act=viewCat&catId=14) and have ordered the old items. How can I hide either these items of the category better so that people can't find them but they still stay in the system? Thanks

Link to comment
Share on other sites

I'll assume you're ok with editing files/ftp etc.

Edit /includes/content/viewprod.inc.php

find

$prodArray = $db->select($query);




Add after




if($prodArray[0]['cat_id']==23) {

echo "<html>\r\n<head>\r\n<title>Forbidden 403</title>\r\n</head>\r\n<body><h3>Forbidden 403</h3>\r\nThe document you are requesting is forbidden.\r\n</body>\r\n</html>";

	exit;

}

Change the "23" to your "banned" category ID.

You should be able to do something similar on viewCat.inc.php

Hope this helps,

Jason

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...