Theo một Magento 1.5.1.0 Phiên bản ngày nay lỗi sau, nếu bạn đang ở trên hệ thống > cấu hình > Extensions TBT CORP > Tăng cường sản phẩm Lưới klickte:
Lỗi nghiêm trọng: Gọi đến phương pháp Mage_Eav_Model_Mysql4_Entity_Attribute_Collection không xác định::addVisibleFilter() ở nhà/[IhreSeite]/public_html / app / code / cộng đồng / TBT / Enhancedgrid / mẫu / System / Config / Nguồn / Cột / Show.php trên đường 10
Sau khi một số điều tra thì giải pháp là như sau:
Trong tập tin Show.php trong thư mục app / code /cộng đồng / TBT / Enhancedgrid / mẫu / System / Config / Nguồn / Cột /
có ca. trong dòng 15
$bộ sưu tập = Mage::getResourceModel(‘eav/entity_attribute_collection’)
chống lại
$bộ sưu tập = Mage::getResourceModel(‘catalog/product_attribute_collection’)
được trao đổi.
tiết kiệm, Tải lên và sau đó làm việc để cấu hình lưới sản phẩm tăng cường một lần nữa.
Được sử dụng trong Magento Version 1.5.1.0 bình luận? bổ sung? Ghi chú? vui vẻ!
I’v done what you said.. but still doesn’t work.. Now I get a different message..
Lỗi nghiêm trọng: 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( pháp sư::getModel(‘eav/entity’)->setType(‘catalog_product’)->getTypeId() )
->addVisibleFilter();
$cols = array();
$cols[] = array(‘value’ => ‘id’, ‘label’ => ‘ID’);
$cols[] = array(‘value’ => ‘type_id’, ‘label’ => ‘Type (simple, bó lại, vv)');
$cols[] = array(‘value’ => ‘attribute_set_id’, ‘label’ => ‘Attribute Set’);
$cols[] = array(‘value’ => ‘qty’, ‘label’ => ‘Quantity’);
$cols[] = array(‘value’ => ‘websites’, ‘label’ => ‘Websites’);
cho mỗi($collection->getItems() as $col) {
$cols[] = array(‘value’ => $col->getAttributeCode(), ‘label’ => $col->getFrontendLabel());
}
return $cols;
}
}
missing bit…
setEntityTypeFilter( pháp sư::getModel(‘eav/entity’)->setType(‘catalog_product’)->getTypeId() )
->addVisibleFilter();
$cols = array();
$cols[] = array(‘value’ => ‘id’, ‘label’ => ‘ID’);
$cols[] = array(‘value’ => ‘type_id’, ‘label’ => ‘Type (simple, bó lại, vv)');
$cols[] = array(‘value’ => ‘attribute_set_id’, ‘label’ => ‘Attribute Set’);
$cols[] = array(‘value’ => ‘qty’, ‘label’ => ‘Quantity’);
$cols[] = array(‘value’ => ‘websites’, ‘label’ => ‘Websites’);
cho mỗi($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
Cảm ơn bạn!