954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Magento get active state

Hi I am trying to get the active state for my foreach loop for my magento site. I have have tried everything, but it just wont work.. here is my code:

ksort($catArr);


foreach($catArr as $postion=>$catId){
$_category = Mage::getModel("catalog/category")->load($catId);
?>
<?php
if($_category->getIsActive() )
{
$caturl = $_category->getURL();
$catname = $_category->getName();
?>

<?php if($_category->getdata('left_menu')): ?>

" >
<?php echo $catname ?>

<?php endif ?>
<?php
}
?>
<?php
}
?>

andy106
Newbie Poster
20 posts since Aug 2010
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: