View Single Post
  #5  
Old 07-29-2005, 09:17 AM
 
martin242 martin242 is offline
 

Advanced Member
  
Join Date: May 2004
Location: Buenos Aires, Argentina
Posts: 42
 

Default

This is what I did:

In include/categories.php I changed this:

Code:
$search_condition = "AND avail='Y' AND (membership='".addslashes($user_account["membership"])."' OR membership='')";

To this:

Code:
$search_condition = "AND avail='Y' OR $sql_tbl[categories].avail='H' AND (membership='".addslashes($user_account["membership"])."' OR membership='')";

(as indicated in the thread you posted)

When I set a category "not available" from the admin panel, the category dissapears from the category menu (customer side), but when I try to access it by it's direct link it takes me to the home page of my site.
Am I missing something?
Thank you very much,

Martin
__________________
X-Cart Gold 4.0.14
Modified FlexyRectangles Skin
Reply With Quote