문제

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