Modify

Opened 9 years ago

Closed 9 years ago

Last modified 4 years ago

#970 closed Bug/Fehler (fixed)

Fehler bei Filter "Hersteller" in Produktlisting

Reported by: werner200 Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.1.0
Component: Admin Version: 2.0.0.0
Keywords: Cc:
Blocked By: Blocking:

Description

Das Filter "Hersteller" in Produktlisting funktioniert nur wenn Suchmaschinenfreundliche URLs auf JA stehen. Wenn Suchmaschinenfreundliche URLs auf NEIN stehen gelangt man nach Auswahl eines Herstellers auf die Startseite.

Attachments (0)

Change History (2)

comment:1 by Torsten Riemer, 9 years ago

Resolution: fixed
Status: newclosed

Der Fehler wurde in r9689 bereits für die kommende Shopversion 2.0.1.0 korrigiert.

Suche in Datei "/includes/modules/listing_filter.php":

    } else {
      $options = array (array ('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));
    }

Füge danach ein:

    if (isset($_GET['cPath']) && !empty($_GET['cPath']) && SEARCH_ENGINE_FRIENDLY_URLS != 'true') {
      $manufacturer_dropdown .= xtc_draw_hidden_field('cPath', preg_replace('/[^0-9_]/','',$_GET['cPath'])).PHP_EOL;
    }

Suche weiter:

      $filter_dropdown[$options_id] .= xtc_draw_form('filter', xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('page', 'show', 'cat'))), 'get');
      if (isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] > 0) {
        if (basename($PHP_SELF) == FILENAME_ADVANCED_SEARCH_RESULT || SEARCH_ENGINE_FRIENDLY_URLS != 'true') {
          $filter_dropdown[$options_id] .= xtc_draw_hidden_field('manufacturers_id', (int)$_GET['manufacturers_id']).PHP_EOL;
        }
      }

Ersetze mit:

      $filter_dropdown[$options_id] = xtc_draw_form('filter', xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('page', 'show', 'cat'))), 'get');
      if (isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] > 0) {
        if (basename($PHP_SELF) == FILENAME_ADVANCED_SEARCH_RESULT || SEARCH_ENGINE_FRIENDLY_URLS != 'true') {
          $filter_dropdown[$options_id] .= xtc_draw_hidden_field('manufacturers_id', (int)$_GET['manufacturers_id']).PHP_EOL;
        }
      }
      if (isset($_GET['cPath']) && !empty($_GET['cPath']) && SEARCH_ENGINE_FRIENDLY_URLS != 'true') {
        $filter_dropdown[$options_id] .= xtc_draw_hidden_field('cPath', preg_replace('/[^0-9_]/','',$_GET['cPath'])).PHP_EOL;
      }

comment:2 by Torsten Riemer, 4 years ago

Milestone: modified-shop-2.0.1.0

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.