There is a category set up that is already hidden from appearing in the new products module, but how can this category also be hidden from showing up on the manufacturers pages?
In other words, when Manufacturer product A is in Category 1 it should show up on the manufacturers list of products. But when Manufacturer Product A is in Category 2 it should not display in the manufacturers list of products.
In case it helps, the code used to hide a category from new products module is this:
PHP Code:
if ( (($manufacturers_id > 0 && $_GET['filter_id'] == 0) || $_GET['music_genre_id'] > 0 || $_GET['record_company_id'] > 0) || (!isset($new_products_category_id) || $new_products_category_id == '0') ) {
$new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
p.products_date_added, p.products_price, p.products_type, p.master_categories_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
where p.products_id = pd.products_id
and p.master_categories_id != 3
and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
and p.products_status = 1 " . $display_limit;
} else {
Bookmarks