Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Help please submenu hide if NOT active !!!! 
 
naujasdizainas
Sr. Member
 
Avatar
Total Posts:  128
Joined:  2007-11-04
Lithuania, Vilnius
 

I have this code

<div class="applemenu">
           
<?php foreach ($this->getStoreCategories() as $_category): ?>
                        <? 
if($_category->getIsActive()):?>
<div class="silverheader"><class="menus" href="<?php echo $this->getCategoryUrl($_category) ?>"<? if ($this->isCategoryActive($_category)):?> class="active"<? endif ?>><?php echo $_category->getName()?></a></div>
                        
<? endif; ?>
<?php 
foreach ($_category->getChildren() as $subcategory): ?>
                     <?php $subCat 
Mage::getModel('catalog/category')->load($subcategory); ?>
                    
<div class="submenu"> <class="subsub" <? if ($this->isCategoryActive($_category)):?> id="active"<? endif ?> href="<?php echo $this->getCategoryUrl($subCat); ?>"><?php echo $subCat->getName(); ?></a>
                    </
div>
                     
<? endforeach ?>     
  <? 
endforeach ?>
  
</div>

How make if subcategory NOT active hide this. i mean if I make in admin subcategory Is Active NOT, this still exist in front page. IN category

<? if($_category->getIsActive()):?>
and works all ok, in subcategory this not work.

Help please, thanks

Demo link menu Demo on site

 
Magento Community Magento Community
Magento Community
Magento Community
 
jenks
Member
 
Total Posts:  37
Joined:  2008-06-03
Michigan
 

What menu on this page are you talking about… along the left side?

 
Magento Community Magento Community
Magento Community
Magento Community
 
naujasdizainas
Sr. Member
 
Avatar
Total Posts:  128
Joined:  2007-11-04
Lithuania, Vilnius
 

Yes… about left menu

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top