Question : magento getcollection get first
Answered by : brave-batfish-z5bvsz2162wu
// this gets all the products
$productCollection = Mage::getResourceModel('catalog/products_collection');
// this line gets just the first product
$firstItem = $productCollection->getFirstItem();
Source : https://magento.stackexchange.com/questions/24076/how-to-get-first-item-from-product-collection | Last Update : Sat, 16 May 20