Ok thanks for the confirmation.
The strange thing about all this is, at the other site (also using the multisite module) there is no such issue.
The manufacturers part is still original:
Code:
if (PRODUCT_LIST_FILTER > 0)
{
if (isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] != '')
{
$filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name
from " . TABLE_PRODUCTS . " p, " .
TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " .
TABLE_CATEGORIES . " c, " .
TABLE_CATEGORIES_DESCRIPTION . " cd
where p.products_status = 1
and p.products_id = p2c.products_id
and p2c.categories_id = c.categories_id
and p2c.categories_id = cd.categories_id
and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
and p.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "'
AND p.products_site LIKE '%--".SITE_NAME."--%'
order by cd.categories_name";
} else {
$filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name
from " . TABLE_PRODUCTS . " p, " .
TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " .
TABLE_MANUFACTURERS . " m
where p.products_status = 1
and p.manufacturers_id = m.manufacturers_id
and p.products_id = p2c.products_id
and p2c.categories_id = '" . (int)$current_category_id . "'
AND p.products_site LIKE '%--".SITE_NAME."--%'
order by m.manufacturers_name";
}
$do_filter_list = false;
$filterlist = $db->Execute($filterlist_sql);
if ($filterlist->RecordCount() > 1)
{
$do_filter_list = true;
if (isset($_GET['manufacturers_id']))
{
$getoption_set = true;
$get_option_variable = 'manufacturers_id';
$options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));
} else {
$options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));
}
while (!$filterlist->EOF) {
$options[] = array('id' => $filterlist->fields['id'], 'text' => $filterlist->fields['name']);
$filterlist->MoveNext();
}
}
}
Another weird thing is, defaul_filter.php is on both sites identically.
Any suggestions what file I should take a look at?
Thanks again for the reply.
Streetglow.
Bookmarks