Sunday, January 2, 2011

Magento code to get catalog or product id

$category = Mage::getModel('catalog/category');
$category->load(10);
$collection = $category->getProductCollection();
foreach ($collection as $product) {
$result[] = $product->getId();

No comments:

Post a Comment