Unter einer Magento 1.5.1.0 Version gab es heute folgenden Fehler, wenn man auf System > Konfiguration > TBT CORP EXTENSIONS > Enhanced Product Grid klickte:
Fatal error: Call to undefined method Mage_Eav_Model_Mysql4_Entity_Attribute_Collection::addVisibleFilter() in /home/[IhreSeite]/public_html/app/code/community/TBT/Enhancedgrid/Model/System/Config/Source/Columns/Show.php on line 10
Nach einigem Nachforschen war dann die Lösung folgendermaßen:
In der Datei Show.php im Ordner app/code/community/TBT/Enhancedgrid/Model/System/Config/Source/Columns/
musste ca. in Zeile 15
$collection = Mage::getResourceModel(‘eav/entity_attribute_collection’)
gegen
$collection = Mage::getResourceModel(‘catalog/product_attribute_collection’)
ausgetauscht werden.
Abspeichern, hochladen und dann funktionierte die Konfiguration des Enhanced Product Grids wieder.
Genutzt in Magento Version 1.5.1.0 Kommentare? Ergänzungen? Hinweise? Gerne!
I’v done what you said.. but still doesn’t work.. Now I get a different message..
Fatal error: Call to a member function setEntityTypeFilter() on a non-object in /homez.151/toyfast/www/app/code/community/TBT/Enhancedgrid/Model/System/Config/Source/Columns/Show.php on line 9
Can you help
This is what I have in SHOW.PHP now. Thanks for your time !
setEntityTypeFilter( Mage::getModel(‘eav/entity’)->setType(‘catalog_product’)->getTypeId() )
->addVisibleFilter();
$cols = array();
$cols[] = array(‘value’ => ‘id’, ‘label’ => ‘ID’);
$cols[] = array(‘value’ => ‘type_id’, ‘label’ => ‘Type (simple, bundle, etc)’);
$cols[] = array(‘value’ => ‘attribute_set_id’, ‘label’ => ‘Attribute Set’);
$cols[] = array(‘value’ => ‘qty’, ‘label’ => ‘Quantity’);
$cols[] = array(‘value’ => ‘websites’, ‘label’ => ‘Websites’);
foreach($collection->getItems() as $col) {
$cols[] = array(‘value’ => $col->getAttributeCode(), ‘label’ => $col->getFrontendLabel());
}
return $cols;
}
}
missing bit…
setEntityTypeFilter( Mage::getModel(‘eav/entity’)->setType(‘catalog_product’)->getTypeId() )
->addVisibleFilter();
$cols = array();
$cols[] = array(‘value’ => ‘id’, ‘label’ => ‘ID’);
$cols[] = array(‘value’ => ‘type_id’, ‘label’ => ‘Type (simple, bundle, etc)’);
$cols[] = array(‘value’ => ‘attribute_set_id’, ‘label’ => ‘Attribute Set’);
$cols[] = array(‘value’ => ‘qty’, ‘label’ => ‘Quantity’);
$cols[] = array(‘value’ => ‘websites’, ‘label’ => ‘Websites’);
foreach($collection->getItems() as $col) {
$cols[] = array(‘value’ => $col->getAttributeCode(), ‘label’ => $col->getFrontendLabel());
}
return $cols;
}
}
No.. sorry.. it would just not paste the first part.. I think is executing it
Thank you!