Return to Snippet

Revision: 33371
at October 8, 2010 07:09 by TioSolid


Initial Code
$category = Mage::getModel('catalog/category'); 
$tree = $category->getTreeModel(); 
$tree->load();

$ids = $tree->getCollection()->getAllIds(); 
$arr = array();

if ($ids){ 
foreach ($ids as $id){ 
$cat = Mage::getModel('catalog/category'); 
$cat->load($id);
var_dump($cat);
}

Initial URL


Initial Description
Return a list of all store Categories

Initial Title
Get a list of store Categories

Initial Tags
magento

Initial Language
PHP