1

I.m trying to get all information for magento catalog products. I've tried

$product = Mage::getResourceModel('catalog/product_collection');

but I want to get all attributes for that product( categoryIds is one of them).

4
$products = Mage::getModel('catalog/product')->getCollection()
    ->addAttributeToSelect('*');
foreach ($products as $product) {
    $categoryIds = $product->getCategoryIds();
    //get other stuff from the $product
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.