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).

$products = Mage::getModel('catalog/product')->getCollection()
foreach ($products as $product) {
    $categoryIds = $product->getCategoryIds();
    //get other stuff from the $product
| improve this answer | |

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.