organicinternet / magento-configurable-simple

Enhancement to Magento to allow simple product prices to be used instead of the default special-case configurable product prices
http://organicinternet.co.uk/
282 stars 266 forks source link

Conflicts with layered navigation #129

Open fabolousfrances opened 11 years ago

fabolousfrances commented 11 years ago

Hello.

I use an extension which improve the layered navigation. But when I enabled this two extension I had this message :

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

Line 130 corresponding to that : $searched_entity_ids = $_collection->load()->getSearchedEntityIds();
if ($searched_entity_ids && is_array($searched_entity_ids) && count($searched_entity_ids)){ $select->where('e.entity_id IN (?)', $searched_entity_ids);

I think this is a conflict. How can I solve this problem ?

It happens only in my left column where my layered navigation extension is. In the middle column, the extension works, configurable price are ok.

My magento version is Community Edition 1.7.0.2

Thanks for your help

leiweke commented 11 years ago

Hello Fabolousfrances,

which filter extenstion are you using ?

Thanks Sebastian

fabolousfrances commented 11 years ago

Hello leiweke,

I use GoMage Advanced Navigation (http://www.gomage.com/extensions/gomage-advanced-navigation.html)

phpgit commented 11 years ago

Hello, every one, here is my solution on fixing conflict with GoMage Advanced Navigation, just in case someone encounter such kind of bug, thanks!

file: app/etc/modules/GoMage_Navigation.xml, and update it with following code

<config>
    <modules>
        <GoMage_Navigation>
            <active>true</active>
            <codePool>local</codePool>
            <!-- added by Albert Wang to fix navigation issue -->
            <depends>
                <OrganicInternet_SimpleConfigurableProducts/>
            </depends>
        </GoMage_Navigation>
    </modules>
</config>