Magento – Layered Navigation / Filter Probleme

PictureBei einem Projekt gab es zwei Fehlermeldungen, die auftraten, wenn man versuchte einen Filter bei der Filternavigation (Layered Navigation) use.

Der erste Fehler lautete:

Mage registry key “current_category_filter” already exists

und der zweite:

You cannot define a correlation name ‘eigenes-attribut’ more than once

Weiterhin fiel auf, dass auch ein Filter zwei Mal auftauchen konnte. Das Problem lag hierbei darin, dass in der catalog.xml die Zeile

<block type="catalog/layer_view" name ="catalog.layer.filter.view" template ="catalog/layer/view.phtml"/>

für den Filter Block zwei Mal aufgerufen wurde. Einmal im Bereich

<!--
Default layout, loads most of the pages
-->

und einmal im Bereich

<!--
Category default layout
-->

Nachdem die Zeile ein Mal entfernt wurde, waren die Probleme gelöst.

Used in Magento Version 1.5 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *