Hallo redcan
Also ich habe jetzt den Thread nicht durchgelesen, aber wenn es um folgendes geht
Jetzt habe ich nur noch das Problem wenn sich ein Artikel in zwei Unterkategorien der selben Hauptkategorie befindet wird dieser dann 2x in der Hauptkategorie angezeigt.
Dann kannst du das versuchen:
Ersetze folgenden Code
$categories_query = xtc_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . $cat_to_search . "' and c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "' order by sort_order, cd.categories_name");
durch diesen Code
$categories_query = xtc_db_query("select distinct c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . $cat_to_search . "' and c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "' order by sort_order, cd.categories_name");
Gruss
Hanspeter