Skip to main content
Tweeted twitter.com/#!/StackMagento/status/455763400942170112
added 5 characters in body
Source Link
Marius
  • 198.5k
  • 55
  • 424
  • 833

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();
}

here is my prepareCollection from this how to get product name and price and statsus

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(); }

here is my prepareCollection from this how to get product name and price and status

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();
}
Source Link
Mani Dev
  • 97
  • 2
  • 2
  • 10

how to get product details in admin grid?

here is my prepareCollection from this how to get product name and price and statsus

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(); }