Guest spanishben Posted August 31, 2007 Share Posted August 31, 2007 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 Quote Link to comment Share on other sites More sharing options...
vokf Posted August 31, 2007 Share Posted August 31, 2007 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 Quote Link to comment Share on other sites More sharing options...
Guest spanishben Posted August 31, 2007 Share Posted August 31, 2007 many thanks, I'll give that a try. 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.