Vinai / groupscatalog2

Magento extension to enable you to hide categories and products from customers depending on their customer group. This is a Magento 1.6 and newer compatible version of the Netzarbeiter Customer Groups Catalog extension.
139 stars 60 forks source link

Layered navigation error in search result page #87

Closed shanpr closed 10 years ago

shanpr commented 10 years ago

Hi, I got the following layered navigation error in search result page after using this extension.

Fatal error: Call to undefined method Netzarbeiter_GroupsCatalog2_Model_CatalogSearch_Resource_Fulltext_Collection::getSearchedEntityIds() in .../app/code/local/GoMage/Navigation/Model/Resource/Eav/Mysql4/Layer/Filter/Attribute.php on line 168

Can you please help?

shanpr commented 10 years ago

search

shanpr commented 10 years ago

Now I disabled the below codes from 'app/code/community/Netzarbeiter/GroupsCatalog2/etc/config.xml ' and now shows the layered navigation correctly. Can you tell me the correct method for solve the issue?

        <!--<catalogsearch_resource>
            <rewrite>
                <fulltext_collection>Netzarbeiter_GroupsCatalog2_Model_CatalogSearch_Resource_Fulltext_Collection</fulltext_collection>
            </rewrite>
        </catalogsearch_resource>-->
        <!-- rewrite the wishlist item collection to add the filter (by setting the event prefix and object) -->
Vinai commented 10 years ago

Which version of Magento are you using? The extension listed in your error message GoMage_Navigation is still using the old, pre Magento 1.6 conventions for resource model names. That is itself isn't a problem, but my guess is simply that it isn't compatible with the newer API version of the resource model. Basically, it's just an incompatibility between GoMage_Navigation and the GroupsCatalog2 extension. You will have to decide which one is more important and remove the other to have a fully operational site. The alternative is to make both work together, but that requires enough developer skills to analyze both classes, understand what they do and how they do it and refactor the classes to work together.

I am not familiar with the GoMage_Navigation extension and I don't have time to look into it myself, sorry.

Kind regards, Vinai