Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: 2. Kategoriebox erstellen

    monozwerg

    • Neu im Forum
    • Beiträge: 16
    2. Kategoriebox erstellen
    Antwort #30 am: 14. Mai 2010, 17:02:47
    Super, das "Bestseller" Problem ist gelöst, vielen Dank dafür, aber was nun mit dem eigentliche Problem? Was könnte falsch sein, wo muß ich was ändern damit es funzt? Vielen Dank!

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    2. Kategoriebox erstellen
    Antwort #31 am: 14. Mai 2010, 18:36:54
    Dann überprüfe den Einbau bitte nochmal genau.

    Grüße

    Torsten

    monozwerg

    • Neu im Forum
    • Beiträge: 16
    2. Kategoriebox erstellen
    Antwort #32 am: 14. Mai 2010, 20:17:26
    So, alles nochmal kontrolliert und Fehler gefunden, in der boxes.php war die eine Zeile doppelt, rausgelöscht und nun funktionierts. vielen Dank, jetzt besteht nur noch ein grafisches problem, wie bekomme ich die unterkategorien in das layout wie in kategorie 1? also gleich schrift und die pfeile davor?

    sinuspower

    • Fördermitglied
    • Beiträge: 34
    2. Kategoriebox erstellen
    Antwort #33 am: 14. Mai 2010, 20:28:20
    Hallo monozwerg,
    bei deinem Problem kann ich leider nicht helfen. Ich hab aber eben deinen Shop besucht und ich muß sagen, der sieht richtig "geil" aus. Respekt!! Hast du machen lassen, oder?

    Gruß,
    Achim

    monozwerg

    • Neu im Forum
    • Beiträge: 16
    2. Kategoriebox erstellen
    Antwort #34 am: 14. Mai 2010, 20:30:27
    Ja, das Template habe ich gekauft! Bin am suchen, aber ich wüßte nicht wo ich jetzt ran muß.

    Hot-Tips

    • Frisch an Board
    • Beiträge: 94
    2. Kategoriebox erstellen
    Antwort #35 am: 15. Mai 2010, 08:47:05
    Hallo Monozwerg,

    wenn Du den kompletten Thread gelesen hast, dann ist Dir bestimmt auch folgendes aufgefallen:

    "Die beigefügte xtc_show_category_section.inc.php aus dem Ordner XTC5->source->inc muss der orginalen xtc_show_category.inc.php angepasst werden. Das Gleiche gilt übrigens auch für die Datei box_categories_section.html aus dem Ordner XTC5->boxes, diese muss der originalen box_categories.html angepasst werden. Beide Dateien enthalten eigene CSS-Klassen, so dass die zweite Box ein anderes Layout hat, wenn diese nicht geändert werden! "

    Du musst also diese Anpassungen in den Dateien Deines Templates machen, da die von mir angepassten Dateien ja für das XTC5 Template gedacht waren.

    So sieht es in der oberen Box aus:

    Code: PHP  [Auswählen]
    <td valign="top" onmouseout="rowOutEffect(this)" onmouseover="rowOverEffect(this)" class="moduleRow"><img alt="" src="templates/xtc_tpl_0083/img/icon_arrow_02.gif"> <b><a href="http://behind-omaha.de/shop/index.php?cat=c65_20mm---Figuren---Modelle.html&XTCsid=3db708bdb6662381bc30ff515f01a1ec" class="cat">20mm - Figuren & Modelle</a></b> (1960)</td>
    und so in der unteren:

    Code: PHP  [Auswählen]
    <li class="level1"><a href="http://behind-omaha.de/shop/index.php?cat=c185_Test.html&XTCsid=3db708bdb6662381bc30ff515f01a1ec">Test (1)</a></li>
    <a href="http://behind-omaha.de/shop/index.php?cat=c185_Test.html&XTCsid=3db708bdb6662381bc30ff515f01a1ec">Test (1)</a>
    Tip:
    Vergleiche Deine originale xtc_show_categorie.php mit der xtc_show_categorie_section.php und die originale box_categories.html mit der box_categories_section.html!
    Wenn Du da nicht weiter weisst, dann füge die beiden originalen Dateien mal als Anhang an, schaue mal ob ich die Dir dann bearbeiten kann.

    P.S.: Wie ich sehe handelst Du mit Modellen, kommt also in die Richtung meines RC-Shops, falls Interesse an einem Linktausch besteht, dann gib mir kurz Bescheid!

    Zitat
    Da wir uns gerade erst in der Aufbauphase befinden und wir noch keine Möglichkeit haben große Lagerbestände aufzubauen wird es zu Verzögerungen bei der Auslieferung der Artikel geben. Wir geben uns aber die größte Mühe diese auf dem schnellsten Wege zu besorgen.
    Den Satz würde ich nicht unbedingt auf die Startseite des Shop setzen, Ehrlichkeit ist zwar wichtig, dürfte aber trotzdem so einige Kunden davon abhalten einen Einkauf zu tätigen. Wenn er dennoch drin bleiben soll/muss, dann muss es grammatisch richtig ", wird es Verzögerungen bei der Auslieferung der Artikel geben." oder ", wird es zu Verzögerungen bei der Auslieferung der Artikel kommen." heissen.

    Gruß
    Mike

    Hot-Tips

    • Frisch an Board
    • Beiträge: 94
    2. Kategoriebox erstellen
    Antwort #36 am: 15. Mai 2010, 10:42:17
    Hallo Monozwerg,

    habe mir soeben den Seitenquelltext Deines Shops angeschaut, Du nutzt nicht nur ein gekauftes Template, sondern auch die originale XTC-Software. Die hier angebotenen Zusatzmodule aus der Bastel- und Modulecke sind aber für die XTC-Mod Version gedacht und wurden extra dafür angepasst. Logo, dass es bei der Installation dieser Module in einen normalen XTC-Shop zu Problemen kommt oder kommen kann.

    Gruß
    Mike

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    2. Kategoriebox erstellen
    Antwort #37 am: 15. Mai 2010, 14:34:47
    Gut, dass Mike aufgepasst hat, dann hat sich das eigentlich schon erledigt. ;-)

    Grüße

    Torsten

    monozwerg

    • Neu im Forum
    • Beiträge: 16
    2. Kategoriebox erstellen
    Antwort #38 am: 15. Mai 2010, 16:15:46
    wieso? funktioniert doch jetzt einwandfrei, muß nur noch ans layout angepasst werden:

    hier mal die quellcodes:

    xtc_show_category.inc.php

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: xtc_show_category.inc.php 1060 2005-07-21 18:32:58Z mz $

       XT-Commerce - community made shopping
       http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))

       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/icon_arrow_02.gif" alt="" /> ';

        for ($a=0; $a<$foo[$counter]['level']; $a++) {

          if ($foo[$counter]['level']=='1') {
          $categories_string .= " - ";
          }

        }
        if ($foo[$counter]['level']=='') {
        if (strlen($categories_string)=='0') {
        $categories_string .='<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
        } else {
        $categories_string .='</td></tr></table><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
        }

         $categories_string .= $img_1;
        $categories_string .= '<b><a class="cat" href="';
        } else {
        $categories_string .= '<a href="';
        }

            $cPath_new=xtc_category_link($counter,$foo[$counter]['name']);

        $categories_string .= xtc_href_link(FILENAME_DEFAULT, $cPath_new);
        $categories_string .= '">';

        if ( ($id) && (in_array($counter, $id)) ) {
          $categories_string .= '</b><b>';
        }

        // display category name
        $categories_string .= $foo[$counter]['name'];

        if ( ($id) && (in_array($counter, $id)) ) {
          $categories_string .= '</b>';
        }

        if ($foo[$counter]['level']=='') {
        $categories_string .= '</a>';
        } 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 .= '</tr><tr><td><img height="1" src="templates/'.CURRENT_TEMPLATE.'/img/pixel_trans.gif" alt="" />';

        if ($foo[$counter]['next_id']) {
            xtc_show_category($foo[$counter]['next_id']);
        } else {
            $categories_string .= '</td></tr></table>';
        }
      }

    ?>
     
    xtc_show_category_section.inc.php

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: xtc_show_category.inc.php 1262 2005-09-30 10:00:32Z mz $

       XT-Commerce - community made shopping
       http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))

       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_section($counter) {
            global $foo, $categories_section_string, $id;

        // image for first level
        //$img_1='<img src="templates/'.CURRENT_TEMPLATE.'/img/icon_arrow.jpg" alt="" /> ';

            if ($foo[$counter]['level']=='') {
                    if (strlen($categories_section_string)=='0') {
                            $categories_section_string .='';
                    } else {
                            //$categories_section_string .= '<li class="submenuspacer"></li>';
                            $categories_section_string .= '';
                            $categories_section_string .='';
                    }
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '<li class="level1"><a href="';
            } else {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '<li class="level'.($foo[$counter]['level']+1).'"><a  href="';
            }

            $cPath_new=xtc_category_link($counter,$foo[$counter]['name']);

            if (trim($foo[$counter]['name']) != '' ) {
                    $categories_section_string .= xtc_href_link(FILENAME_DEFAULT, $cPath_new);
                    $categories_section_string .= '">';
        }

            /* Anzeigen der Kategoriebezeichnung
            if ($foo[$counter]['level']=='1') {
                    $categories_section_string .= '';
            }*/


            $categories_section_string .= $foo[$counter]['name'];

            if ( ($id) && (in_array($counter, $id)) ) {
                            //$categories_section_string .= '';
            }

            if (SHOW_COUNTS == 'true') {
                    $products_in_category = xtc_count_products_in_category($counter);
                    if ($products_in_category> 0) {
                            if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= ' (' . $products_in_category . ')';
                    }
            }

            if ($foo[$counter]['level']=='') {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '</a></li>';
            } else {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '</a></li>';
                    if ($foo[$counter]['level']=='1') {
                            $categories_section_string .='';
                    }
            }

            if ($foo[$counter]['next_id']) {
                    xtc_show_category_section($foo[$counter]['next_id']);
            } else {
                    $categories_section_string .= '';
            }
    }
    ?>
     
    box_categories.html

    Code: PHP  [Auswählen]
    {config_load file="$language/lang_$language.conf" section="boxes"}
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td valign="top" class="infoBoxHeading" height="25"><div style="padding-top:5px;">{#heading_categories#}</div></td>
             <td></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td class="infoBox"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td style="padding-left:15px" class="boxText2">{$BOX_CONTENT}</td>
            </tr>

        </table></td>
      </tr>
    </table>
     
    box_categories_section.html

    Code: PHP  [Auswählen]
    {config_load file="$language/lang_$language.conf" section="boxes"}
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td valign="top" class="infoBoxHeading" height="25"><div style="padding-top:5px;">{#heading_categories#}</div></td>
             <td></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td class="infoBox"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td style="padding-left:15px" class="boxText2">{$BOX_CONTENT}</td>
            </tr>

        </table></td>
      </tr>
    </table>
     

    Hot-Tips

    • Frisch an Board
    • Beiträge: 94
    2. Kategoriebox erstellen
    Antwort #39 am: 15. Mai 2010, 17:22:39
    Gut, dass Mike aufgepasst hat, dann hat sich das eigentlich schon erledigt. ;-)

    Grüße

    Torsten

    Damit meinte Torsten bestimmt, dass Du hier im falschen Forum bist, um Deine Probleme zu lösen. Hier werden Probleme und Lösungen zu XTC-Mod gepostet und nicht zur offiziellen XTC-Software!

    Kleiner und letzter Tip von mir, da es eigentlich nicht hierhin gehört, da die beiden originalen Dateien Deines Templates ja für den Aufruf der ersten Box sind und funktionieren, sollten diese auch für die zweite Box ihren Zweck erfüllen.

    Als Anhang mal eine von mir abgeänderte Version Deiner originalen xtc_show_categorie.inc.php, aber ohne Gewähr das es funktioniert!
    Habe ich eben mit WinMerge bearbeitet, aber kann diese nicht auf Funktion überprüfen und ist auch eigentlich nicht meine Aufgabe, sondern Deine!

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: xtc_show_category.inc.php 1262 2005-09-30 10:00:32Z mz $

       XT-Commerce - community made shopping
       <a target="_blank" href="http://www.%28%28%20Wir%20dulden%20keine%20kommerziellen%20Werbelinks%20-%20Bitte%20Forenregeln%20beachten%21%20%29%29" rel="nofollow">http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte Forenregeln beachten! ))</a>

       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); <a target="_blank" href="http://www.oscommerce.com" rel="nofollow">http://www.oscommerce.com</a>
       (c) 2003      nextcommerce (xtc_show_category.inc.php,v 1.4 2003/08/13); <a target="_blank" href="http://www.nextcommerce.org" rel="nofollow">http://www.nextcommerce.org</a>

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/


    function xtc_show_category_section($counter) {
            global $foo, $categories_section_string, $id;

        // image for first level
        $img_1='<img src="templates/'.CURRENT_TEMPLATE.'/img/icon_arrow_02.jpg" alt="" /> ';

        for ($a=0; $a<$foo[$counter]['level']; $a++) {

          if ($foo[$counter]['level']=='1') {
          $categories_section_string .= " - ";
          }

                    }
                    if ($foo[$counter]['level']=='') {
                    if (strlen($categories_section_string)=='0') {
                            $categories_section_string .='<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
                    } else {
                            $categories_section_string .= '</td></tr></table><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
                            $categories_section_string .= $img_1;
                            $categories_section_string .='<b><a class="cat" href="';
                    }else {
        $categories_section_string .= '<a href="';
        }
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '<li class="level1"><a href="';
            } else {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '<li class="level'.($foo[$counter]['level']+1).'"><a  href="';
            }

                    $cPath_new=xtc_category_link($counter,$foo[$counter]['name']);

            if (trim($foo[$counter]['name']) != '' ) {
                    $categories_section_string .= xtc_href_link(FILENAME_DEFAULT, $cPath_new);
                    $categories_section_string .= '">';
        }

            /* Anzeigen der Kategoriebezeichnung
            if ($foo[$counter]['level']=='1') {
                    $categories_section_string .= '';
            }*/


            $categories_section_string .= $foo[$counter]['name'];

            if ( ($id) && (in_array($counter, $id)) ) {
                            //$categories_section_string .= '';
            }

            if (SHOW_COUNTS == 'true') {
                    $products_in_category = xtc_count_products_in_category($counter);
                    if ($products_in_category> 0) {
                            if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= ' (' . $products_in_category . ')';
                    }
            }

            if ($foo[$counter]['level']=='') {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '</a></li>';
            } else {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '</a></li>';
                    if ($foo[$counter]['level']=='1') {
                            $categories_section_string .='';
                    }
            }

            if ($foo[$counter]['next_id']) {
                    xtc_show_category_section($foo[$counter]['next_id']);
            } else {
                    $categories_section_string .= '</td></tr></table>';
            }
    }
    ?></b>
    Falls es damit Probleme gibt dann lösche bitte folgenden Teil aus der Datei:

    Code: PHP  [Auswählen]
    for ($a=0; $a<$foo[$counter]['level']; $a++) {

          if ($foo[$counter]['level']=='1') {
          $categories_section_string .= " - ";
          }

                    }
    Gruß
    Mike

    monozwerg

    • Neu im Forum
    • Beiträge: 16
    2. Kategoriebox erstellen
    Antwort #40 am: 15. Mai 2010, 17:42:23
    Dieser Fehlermeldung kommt bei ersten Teil

    Parse error: syntax error, unexpected T_ELSE in /www/htdocs/w00b2747/shop/templates/xtc_tpl_0083/source/inc/xtc_show_category_section.inc.php on line 38

    und diese wenn ich den besagten Teil rauslösche:

    Parse error: syntax error, unexpected T_ELSE in /www/htdocs/w00b2747/shop/templates/xtc_tpl_0083/source/inc/xtc_show_category_section.inc.php on line 32

    Hot-Tips

    • Frisch an Board
    • Beiträge: 94
    2. Kategoriebox erstellen
    Antwort #41 am: 15. Mai 2010, 17:58:55
    Probier es mal so!

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: xtc_show_category.inc.php 1262 2005-09-30 10:00:32Z mz $

       XT-Commerce - community made shopping
       <a target="_blank" href="http://www.%28%28%20Wir%20dulden%20keine%20kommerziellen%20Werbelinks%20-%20Bitte%20Forenregeln%20beachten%21%20%29%29" rel="nofollow">http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte Forenregeln beachten! ))</a>

       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); <a target="_blank" href="http://www.oscommerce.com" rel="nofollow">http://www.oscommerce.com</a>
       (c) 2003      nextcommerce (xtc_show_category.inc.php,v 1.4 2003/08/13); <a target="_blank" href="http://www.nextcommerce.org" rel="nofollow">http://www.nextcommerce.org</a>

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/


    function xtc_show_category_section($counter) {
            global $foo, $categories_section_string, $id;

        // image for first level
        $img_1='<img src="templates/'.CURRENT_TEMPLATE.'/img/icon_arrow_02.jpg" alt="" /> ';

            if ($foo[$counter]['level']=='') {
                    if (strlen($categories_section_string)=='0') {
                            $categories_section_string .='<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
                    } else {
                            $categories_section_string .= '</td></tr></table><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
                    }
                            $categories_section_string .= $img_1;
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '<b><a class="cat" href="';
            } else {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '<a  href="';
            }

            $cPath_new=xtc_category_link($counter,$foo[$counter]['name']);

            if (trim($foo[$counter]['name']) != '' ) {
                    $categories_section_string .= xtc_href_link(FILENAME_DEFAULT, $cPath_new);
                    $categories_section_string .= '">';
        }

            /* Anzeigen der Kategoriebezeichnung
            if ($foo[$counter]['level']=='1') {
                    $categories_section_string .= '';
            }*/


            $categories_section_string .= $foo[$counter]['name'];

            if ( ($id) && (in_array($counter, $id)) ) {
                            //$categories_section_string .= '';
            }

            if (SHOW_COUNTS == 'true') {
                    $products_in_category = xtc_count_products_in_category($counter);
                    if ($products_in_category> 0) {
                            if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= ' (' . $products_in_category . ')';
                    }
            }

            if ($foo[$counter]['level']=='') {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '</a>';
            } else {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '</a>';
                    if ($foo[$counter]['level']=='1') {
                            $categories_section_string .='';
                    }
            }

            if ($foo[$counter]['next_id']) {
                    xtc_show_category_section($foo[$counter]['next_id']);
            } else {
                    $categories_section_string .= '</td></tr></table>';
            }
    }
    ?></b>

    monozwerg

    • Neu im Forum
    • Beiträge: 16
    2. Kategoriebox erstellen
    Antwort #42 am: 15. Mai 2010, 18:05:45
    gar nicht schlecht, jetzt fehlt nur noch der pfeil davor! wir kommen der sache näher, vielen dank!

    Hot-Tips

    • Frisch an Board
    • Beiträge: 94
    2. Kategoriebox erstellen
    Antwort #43 am: 15. Mai 2010, 18:15:18
    gar nicht schlecht, jetzt fehlt nur noch der pfeil davor! wir kommen der sache näher, vielen dank!

    Ja, schon klar, ist bei Dir ja eine .gif und keine .jpg Datei

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: xtc_show_category.inc.php 1262 2005-09-30 10:00:32Z mz $

       XT-Commerce - community made shopping
       <a target="_blank" href="http://www.%28%28%20Wir%20dulden%20keine%20kommerziellen%20Werbelinks%20-%20Bitte%20Forenregeln%20beachten%21%20%29%29" rel="nofollow">http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte Forenregeln beachten! ))</a>

       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); <a target="_blank" href="http://www.oscommerce.com" rel="nofollow">http://www.oscommerce.com</a>
       (c) 2003      nextcommerce (xtc_show_category.inc.php,v 1.4 2003/08/13); <a target="_blank" href="http://www.nextcommerce.org" rel="nofollow">http://www.nextcommerce.org</a>

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/


    function xtc_show_category_section($counter) {
            global $foo, $categories_section_string, $id;

        // image for first level
        $img_1='<img src="templates/'.CURRENT_TEMPLATE.'/img/icon_arrow_02.gif" alt="" /> ';

            if ($foo[$counter]['level']=='') {
                    if (strlen($categories_section_string)=='0') {
                            $categories_section_string .='<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
                    } else {
                            $categories_section_string .= '</td></tr></table><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
                    }
                            $categories_string .= $img_1;
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '<b><a class="cat" href="';
            } else {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '<a  href="';
            }

            $cPath_new=xtc_category_link($counter,$foo[$counter]['name']);

            if (trim($foo[$counter]['name']) != '' ) {
                    $categories_section_string .= xtc_href_link(FILENAME_DEFAULT, $cPath_new);
                    $categories_section_string .= '">';
        }

             Anzeigen der Kategoriebezeichnung
            if ($foo[$counter]['level']=='1') {
                    $categories_section_string .= ' - ';
            }

            $categories_section_string .= $foo[$counter]['name'];

            if ( ($id) && (in_array($counter, $id)) ) {
                            $categories_section_string .= '</b><b>';
            }

            if (SHOW_COUNTS == 'true') {
                    $products_in_category = xtc_count_products_in_category($counter);
                    if ($products_in_category> 0) {
                            if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= ' (' . $products_in_category . ')';
                    }
            }

            if ($foo[$counter]['level']=='') {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '</a>';
            } else {
                    if (trim($foo[$counter]['name']) != '' ) $categories_section_string .= '</a>';
                    if ($foo[$counter]['level']=='1') {
                            $categories_section_string .='';
                    }
            }

            if ($foo[$counter]['next_id']) {
                    xtc_show_category_section($foo[$counter]['next_id']);
            } else {
                    $categories_section_string .= '</td></tr></table>';
            }
    }
    ?></b>

    monozwerg

    • Neu im Forum
    • Beiträge: 16
    2. Kategoriebox erstellen
    Antwort #44 am: 15. Mai 2010, 18:17:29
    ne, leider immer noch net...hmmmm

    54 Antworten
    32723 Aufrufe
    03. Mai 2017, 21:22:04 von Knut
    0 Antworten
    1887 Aufrufe
    12. Oktober 2011, 10:30:12 von wilite
    0 Antworten
    1975 Aufrufe
    11. April 2011, 12:34:02 von m1
    2 Antworten
    3141 Aufrufe
    09. Juni 2011, 19:37:53 von RossiRat
               
    anything