Difference Between getCollection() and $product->getData() in Magento 1.9

collection;magento-1.9model

What is different between getCollection(); and $product->getData();

$products_collection = Mage::getModel('catalog/product')
**getCollection();
->addAttributeToSelect('*')
->addFieldToFilter('price','5.00'); 

and

$product->getData(); 

Best Answer

As the name suggest - getCollection() returns a collection/list of many products by some criteria (addFieldToFilter()). getData() returns full data for specific product.

Related Topic