In Magento 1.9, I Have a custom admin grid.
I have product id
in my custom collection. I need to add product name
to that collection.
How to achieve it?
I am using the following code.
$productTable = Mage::getSingleton('core/resource')->getTableName('catalog/product');
$orders->getSelect()->join( array('product_data'=> $productTable),
'product_data.entity_id = main_table.product_id',
array('product_data.name'));