Modify ↓
#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 , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:2 by , 4 years ago
| Milestone: | → modified-shop-2.0.1.0 |
|---|
Note:
See TracTickets
for help on using tickets.

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; }