here is my prepareCollectionprepareCollection
from this how to get product name and price and statsusstatus
protected function _prepareCollection()
{
$store = $this->_getStore();
$collection = Mage::getModel('catalog/product_link')
->getCollection()
->addFieldToFilter('product_id',$this->_getProductId())
->addFieldToFilter('link_type_id','1');
$this->setCollection($collection);
return parent::_prepareCollection();
}
protected function _prepareCollection()
{
$store = $this->_getStore();
$collection = Mage::getModel('catalog/product_link')
->getCollection()
->addFieldToFilter('product_id',$this->_getProductId())
->addFieldToFilter('link_type_id','1');
$this->setCollection($collection);
return parent::_prepareCollection();
}