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