Werbung / Banner buchen
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: Frage zum SP1d

    karl

    • Schreiberling
    • Beiträge: 439
    Frage zum SP1d
    am: 22. Juli 2012, 00:45:29
    Habe gerade 1d aufgespielt. Kategorien werden nicht angezeigt.

    Liegt an der SP1c categories_view.php - habe alte aufgespielt und diese wird geladen. Mit den Änderungen für den SP1c wird categories_view.php nicht geladen.

    Woran liegt das?

    ALT:
    Code: PHP  [Auswählen]
    defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');  
        // get sorting option and switch accordingly        
        if ($_GET['sorting']) {
                    switch ($_GET['sorting']){     

    NEU:
    Code: PHP  [Auswählen]
    defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
      $action = (isset($_GET['action']) ? $_GET['action'] : '');
      $search = (isset($_GET['search']) ? $_GET['search'] : '');

      // get sorting option and switch accordingly
      $sorting = (isset($_GET['sorting']) ? $_GET['sorting'] : '');
      if (xtc_not_null($sorting)) {
        switch ($sorting) {

    -----

    ALT:
    Code: PHP  [Auswählen]
    case 'sort'         :
                                    $catsort    = 'c.sort_order ASC';
                                    $prodsort   = 'p.products_sort ASC';
                                    break;         
                            case 'sort-desc'    :
                                    $catsort    = 'c.sort_order DESC';
                                    $prodsort   = 'p.products_sort DESC';

    NEU:
    Code: PHP  [Auswählen]
    case 'sort'         :
                                    $catsort    = 'c.sort_order ASC';
                                    $prodsort   = (isset($_GET['cPath']) && $_GET['cPath'] != '0') ? 'p.products_sort ASC' : 'p.products_startpage_sort ASC'; //web28 2012-03-11 Fix products_startpage_sort
                                    break;
                            case 'sort-desc'    :
                                    $catsort    = 'c.sort_order DESC';
                                    $prodsort   = (isset($_GET['cPath']) && $_GET['cPath'] != '0') ? 'p.products_sort DESC' : 'p.products_startpage_sort DESC'; //web28 2012-03-11 Fix products_startpage_sort
            break;

    ALT:
    Code: PHP  [Auswählen]
    } else {
                $catsort    = 'c.sort_order, cd.categories_name ASC';
                $prodsort   = 'p.products_sort, pd.products_name ASC';
        }      

    NEU:
    Code: PHP  [Auswählen]
    } else {
            $catsort    = 'c.sort_order, cd.categories_name ASC';
            $prodsort   = (isset($_GET['cPath']) && $_GET['cPath'] != '0') ? 'p.products_sort, pd.products_name ASC' : 'p.products_startpage_sort, pd.products_name ASC'; //web28 2012-03-11 Fix products_startpage_sort
        }

      // BOF DokuMan - 2011-03-05 - show category name in heading title
      $category_query_name = xtc_db_query("SELECT categories_name
                                             FROM "
    . TABLE_CATEGORIES_DESCRIPTION . "
                                            WHERE categories_id = '"
    . $current_category_id . "'
                                              AND language_id = "
    . (int)$_SESSION['languages_id']);
      $category_name = xtc_db_fetch_array($category_query_name);
      // EOF DokuMan - 2011-03-05 - show category name in heading title


    Linkback: https://www.modified-shop.org/forum/index.php?topic=21267.0

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: Frage zum SP1d
    Antwort #1 am: 22. Juli 2012, 23:56:56
    Anstatt um Löschung des Thema zu bitten wäre es doch sinnvoller, wenn du der Community noch sagst, wie du dein Problem lösen konntest. ;-)

    Grüße

    Torsten

    karl

    • Schreiberling
    • Beiträge: 439
    Re: Frage zum SP1d
    Antwort #2 am: 23. Juli 2012, 10:08:02
    Ein reiner Übertragungsfehler meinerseits in der dritten Zeile.

    ALT:
    Code: PHP  [Auswählen]
    } else {
              // create category/product info
              $contents[] = array('text' => '<div class="header3">' . EMPTY_CATEGORY . '</div>');
              $contents[] = array('text' => sprintf(TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS, xtc_get_categories_name($current_category_id, $_SESSION['languages_id'])));
              $contents[] = array('align' => 'center', 'text' => '<BR /><a class="button" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_category') . '">' . BUTTON_NEW_CATEGORIES . '</a>&nbsp;<a class="button" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_product') . '">' . BUTTON_NEW_PRODUCTS . '</a><br style="clear:both;" />');
            }

    NEU:
    Code: PHP  [Auswählen]
    } else {
              // create category/product info
              $contents[] = array('text' => '<div class="header3">' . EMPTY_CATEGORY . '</div>');
              $contents[] = array('text' => sprintf(TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS, xtc_get_categories_name($current_category_id, $_SESSION['languages_id'])));
              $buttons_new_elements = '<br /><a class="button" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_category') . '">' . BUTTON_NEW_CATEGORIES . '</a>';
              .........
             
            }
    Ohne den Eintrag wird die Seite "Kategorien/Artikel" nicht geladen.
    Shop Hosting
    0 Antworten
    1758 Aufrufe
    07. Oktober 2012, 16:40:54 von Folienschrift-Shop
    1 Antworten
    2018 Aufrufe
    10. Juli 2012, 15:59:57 von cybermailer
    2 Antworten
    2036 Aufrufe
    07. September 2012, 13:47:18 von mhbosch
    8 Antworten
    4031 Aufrufe
    27. Januar 2016, 21:32:13 von Gradler
               
    anything