My Science Is Better

15Nov/110

Magento get all products

Here is an easy way to return all the products from a magento store.

$collection = Mage::getModel('catalog/product')
                        ->getCollection()
                        ->addAttributeToSelect('*');

foreach ($collection as $product) {
    echo $product->getName() . "<br />";
}
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.

Tag Cloud

Categories

Archives

Akismet

Blogroll

Ads