To control the Product Listing ... you can edit the file:
/includes/index_filters/default_filter.php
And create this variable $block_these:
and add to each set of WHERE settings ...PHP Code:if (isset($_SESSION['customer_id']) && $_SESSION['customer_id'] > 0) {
$block_these = '';
} else {
$block_these = " and p.master_categories_id != 10 ";
}
Now how you set the condition is up to you ... this example blocks categories_id 10 on the assumption master_categories_id is 10 ...
Then to do the searches, you can customize the file:
/includes/modules/pages/advanced_search_results/header_php.php
and use the same code and add to the last set of WHERE settings ...
You can do this anywhere you want this to happen ...
Or, you can take the approach of an intercept page where they see some info but when they try to get to detail it is blocked ...
Or, you can change those products to be Login Only products by altering the function(s) for the buy and add to cart ...
There are a number of approaches that could be used to close off products ...
So it's time to get your coder hat on ...
Or, time to find someone who is a glutton for punishment ... er ... a coder who can write this for you ...




