$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");
$category_parent = tep_db_fetch_array($category_parent_query);
if ($category_parent['total'] > 0) {
$category_depth = 'nested'; // navigate through the categories
} else {
$category_depth = 'products'; // category has no products, but display the 'no products' message
}
and change to this: $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");
$category_parent = tep_db_fetch_array($category_parent_query);
// if ($category_parent['total'] > 0)
// $category_depth = 'nested'; // navigate through the categories
// } else {
$category_depth = 'products'; // category has no products, but display the 'no products' message
// } That should now show only products. If a category has no products, the page will be empty. I hope that's what you want.
Regards
Jim










