|
|||
|
Hallo,
ich habe ich bei meinem Shop f?r das Seven-Art Template enschieden, allerdings finde ich es nicht sch?n, das unterkategorien in der selben linie wie die Hauptkategorie angezeigt wird. Ein guten Beispiel f?r eine gute Darstellung finde ich das Template "xtc4u53_x", dort ist es auf jedenfall ersichtlich, wo ich mich als Nutzer befinde. Die grafische Darstelluing mit *.gif?s habe ich bereits hinbekommen, nur das "reinstellen" der Untergategorien kann ich nirgenswo finden. Bitte um Hilfe!!! Danke schon mal im Voraus! MfG PiT |
|
|||
|
Ganz genau, das meine ich, :bounce:
doch leider habe ich kaum ahnung von php. Wenn mir jetzt noch einer helfen k?nnte, und mir sagen, was genau ich ?ndern mu?, um das so darstellen zu k?nnen, wie es "luebke" in seinem Link hat, w?hre das echt spitze. Vielen Dank erstmal an dich, luebke, und viellen dank im voraus, f?r jeden, der mir helfen kann. MfG PiT |
|
||||
|
Moin,
und sorry, habe mich wohl mit dem Namen etwas vertan, hier aber der Quelltext der xtc_show_categoies.inc. php, zu finden in tremplates/deintemplate/source/inc Code:
<?php /* ----------------------------------------------------------------------------------------- $Id: xtc_show_category.inc.php,v 1.2 2004/02/22 16:15:30 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 for ($a=0; $a<$foo[$counter]['level']; $a++) { if ($foo[$counter]['level']=='1') { $categories_string .= "-"; } if ($foo[$counter]['level']=='2') { $categories_string .= ""; } $categories_string .= ""; } if ($foo[$counter]['level']=='') { if (strlen($categories_string)=='0') { $categories_string .=''; } else { $categories_string .=''; } // image for first level $categories_string .= '+'; $categories_string .= '<b><a href="'; //<img src="templates/zanier/img/recht_small.gif"> } else { $categories_string .= '<a href="'; } if ($foo[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $foo[$counter]['path']; } $categories_string .= xtc_href_link(FILENAME_DEFAULT, $cPath_new); $categories_string .= '">'; if ( ($id) && (in_array($counter, $id)) ) { $categories_string .= '<b>'; } // display category name $categories_string .= $foo[$counter]['name']; if ( ($id) && (in_array($counter, $id)) ) { $categories_string .= '</b>'; } if (xtc_has_category_subcategories($counter)) { $categories_string .= '+'; } if ($foo[$counter]['level']=='') { $categories_string .= '</a></b>'; } else { $categories_string .= '</a>'; } 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']); } } ?> Thomas |
|
|||
|
mal noch ne frage...!
Besteht auch die m?glichkeit, das 1. "+", welchen VOR den Kategorien steht, gegen ein Icon zu tauschen? Ich habe es schon versucht, aber leider funktionierte dann garnix mehr. st: Danke schonmal im voraus, MfG PiT |
![]() |
| Lesezeichen |
| Stichworte |
| kategorie, seveart, unterkat |
| Themen-Optionen | |
| Ansicht | |
|
|