質問

How do I get an array containing the ID's of all active categories?

役に立ちましたか?

解決

$activeCategories = Mage::getResourceModel('catalog/category_collection')
    ->addAttributeToFilter('is_active', 1)
    ->getColumnValues('entity_id');
ライセンス: CC-BY-SA帰属
所属していません magento.stackexchange
scroll top