|
|||
|
Hallo!
ich habe eine Bitte! Auf der Rechten bzw. linken Seite mein Online Shop befindet sich die Kategorienamen. Wenn man drauf klickt gleich unterhalb werden weitere Unterkategorien angezeigt. Da meine Unterkategorien mehrer Buchstaben haben und sehr lang sind, möchte ich, dass diese nicht angezeigt werden, weil der Online-Shop sonst nicht gut und sauber ausschaut. ich wollte wiesen, wo man das machen kann (Unterkategorien nicht anzeigen). Vielen Dank Mit freundlichen Grüßen Fawio |
|
|||
|
Hallo
also ich habe so meine Probleme. Ich möchte gerne die Unterkategorien anzeigen lassen. Sei es wenn man die Hauptkategorie anklicjt oder einfach immer). Aber ich weiß nicht wo ich das einstellen muß. Bitte, bitte ich brauche Eure Hilfe. Vielen Dank Tom |
|
|||
|
Hallo
also ich hatte das Menü eigentlich ganz OK, aber als ich die Produkte noch einmal gelöscht habe (um wieder mit einem "weißen Blatt" anfangen zu können) waren plätzlich die Untermenüs verschwunden. Der HMTL-Spaß sieht so aus: HTML-Code:
<?php /* ----------------------------------------------------------------------------------------- $Id: xtc_show_category.inc.php,v 1.1 2004/04/26 20:26:42 fanta2k Exp $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(categories.php,v 1.23 2002/11/12); www.oscommerce.com (c) 2003 nextcommerce (xtc_show_category.inc.php,v 1.4 2003/08/13); www.nextcommerce.org Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ function xtc_show_category($counter) { global $foo, $categories_string, $id; // image for first level $img_1='<img src="templates/'.CURRENT_TEMPLATE.'/img/level1menu.gif" alt="" /> '; $img_2=' <img src="templates/'.CURRENT_TEMPLATE.'/img/level2menu.gif" alt="" />'; $img_3=' <img src="templates/'.CURRENT_TEMPLATE.'/img/level3menu.gif" alt="" /> '; for ($a=0; $a<$foo[$counter]['level']; $a++) { if ($foo[$counter]['level']=='1') { $categories_string .= $img_2; } $categories_string .= " "; } if ($foo[$counter]['level']=='') { if (strlen($categories_string)=='0') { if ( ($id) && (in_array($counter, $id)) ) { $categories_string .='<table width="100%" border="0" cellpadding="1"><tr><td class="tom2">'; } else { $categories_string .='<table width="100%" border="0" cellpadding="1"><tr><td class="tom3">';// inaktive Kategorieerste } } else { if ( ($id) && (in_array($counter, $id)) ) { $categories_string .='</td></tr></table><table border="0" width="100%" cellpadding="1"><tr><td class="tom1">';// aktive Kategorie } else { $categories_string .='</td></tr></table><table border="0" width="100%" cellpadding="1"><tr><td class="tom2">';// inaktive Kategorie ausser erste } } $categories_string .= $img_1; $categories_string .= '<b><a href="'; //direkt vor dem link ohne das bullet - oberkategorien } else { $categories_string .= '<a href="'; //direkt vor dem link ohne das bullet - subkategorien } if ($foo[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $foo[$counter]['path']; } if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') $cPath_new.='&category='.xtc_cleanName($foo[$counter]['name']); $categories_string .= xtc_href_link(FILENAME_DEFAULT, $cPath_new); $categories_string .= '">'; if ( ($id) && (in_array($counter, $id)) ) { $categories_string .= ''; } // display category name $categories_string .= $foo[$counter]['name']; if ( ($id) && (in_array($counter, $id)) ) { $categories_string .= ''; } if (xtc_has_category_subcategories($counter)) { $categories_string .= ''; } if ($foo[$counter]['level']=='') { $categories_string .= '</a></b>'; //schlusstag oberkategorien } else { $categories_string .= '</a>'; //schlusstag unterkategorien } if (SHOW_COUNTS == 'true') { $products_in_category = xtc_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br />'; if ($foo[$counter]['next_id']) { xtc_show_category($foo[$counter]['next_id']); } else { $categories_string .= '</td></tr></table>'; //ende der tabelle } } ?> Tom |
![]() |
| Lesezeichen |
| Stichworte |
| anzeigen, unterkategorien |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| neue Artikel in allen Unterkategorien anzeigen | shd | Shopbereich | 6 | 24.02.2011 00:06 |
| Navigation --> Unterkategorien wieder anzeigen | drathy | Template System | 0 | 19.03.2007 17:02 |