Answers for "magento getcollection get first"

PHP
0

magento getcollection get first

// this gets all the products
$productCollection = Mage::getResourceModel('catalog/products_collection');
// this line gets just the first product
$firstItem = $productCollection->getFirstItem();
Posted by: Guest on May-09-2020

Browse Popular Code Answers by Language