I create a stock report in the administrator and everything still works, except that I can’t filter in the combined column.
I joined stock information using the following to capture my collection.
$collection = Mage::getModel('catalog/product')->getCollection()
->addAttributeToSelect('name')
->addAttributeToSelect('sku')
->addAttributeToSelect('price')
->setStoreId($storeId);
$collection->addFieldToFilter('type_id', 'simple');
$collection->getSelect()->join( array('stock'=>'ccmg_cataloginventory_stock_item'), 'e.entity_id = stock.item_id', array('stock.qty'));
This causes it to display, but you cannot filter or sort the column. I assume that the parameters are not passed back to the connection. However, other columns can be sorted and filtered, and the corresponding data will be pushed back and displayed.
I searched, but most posts have been on the Magento forums since 2008, and I'm using 1.6! Any pointers would be great!
source
share