Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Category Navigation not showing up. 
 
Zimmer
Jr. Member
 
Total Posts:  5
Joined:  2008-06-13
 

Yeah, as the title says. I have created a custom “category” navigation for every page. I made it for a Magento version before 1.1 and it worked perfectly.

Now that I have upgraded to 1.1.6, it doesn’t seem to show anymore. I honestly do not know what is wrong.

This is my vert_nav.phtml file. I am using a javascript accordion, but this is certainly not the problem as even if the JS wasn’t working - the categories should still be showing.

<h6><?php echo $this->__('Categories'?></h6>
<
div id="Accordion1" class="Accordion">
  
      
        
            
<?php foreach ($this->getStoreCategories() as $_category): ?>
            <?php $open 
$this->isCategoryActive($_category); ?>
            <?php $potential 
$_category->hasChildren(); ?>
           
<div class="AccordionPanel"><div class="AccordionPanelTab"><?php echo $_category->getName();?></div>
                
               <
div class="AccordionPanelContent">
               <
ul>
                    
<?php foreach ($_category->getChildren() as $subcategory): ?>
                    <?php $subCat 
Mage::getModel('catalog/category')->load($subcategory); ?>
                    <?php $open 
$this->isCategoryActive($subCat); ?>
                    <?php $potential 
$subCat->hasChildren(); ?>
                    
<li><a href="<?php echo $this->getCategoryUrl($subCat); ?>"<?php if($openecho ' class="subopen"'} ?><?php if($potentialecho ' class="potential"'} ?><?php if(!$potential&&$openecho ' class="final"'} ?> ><?php if($potential&&$openecho 'v 'elseif($potentialecho '> '}?><?php echo $subCat->getName(); ?></a></li>
                        
                            
<?php foreach ($subcategory->getChildren() as $subsubcategory): ?>
                            <?php $subsubCat 
Mage::getModel('catalog/category')->load($subsubcategory); ?>
                            <?php $open 
$this->isCategoryActive($subsubCat?>
                            
<li><a href="<?php echo $this->getCategoryUrl($subsubCat); ?>" <?php if($openecho ' class="final"'} ?>><?php echo $subsubCat->getName(); ?></a></li>
                            
<?php endforeach; ?>
                        
                       
                  
                    <?php 
endforeach; ?>
                
</ul>
                   </
div>
                </
div>
            
            
<?php endforeach ?>
        
    
</div>
<
script type="text/javascript">
<!--
var 
Accordion1 = new Spry.Widget.Accordion("Accordion1");
//-->
</script>
<div style="clear: both;"></div>
<
br />

And this is what I have on catalog.xml

<reference name="right.menu">
       <
block type="catalog/navigation" name="catalog.vertnav" template="catalog/navigation/vert_nav.phtml" />
    </
reference>

I am guessing some of the syntax has changed, but I don’t know how to fix it.

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Pricoll
Member
 
Total Posts:  41
Joined:  2008-04-01
 

In version 1.1.6 they have changed the category backend, check the method in Mage_Catalog_Block_Navigation drawItem() with your code, maybe you find something there what is changed.

I checked fast but couldn’t find something wrong.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Zimmer
Jr. Member
 
Total Posts:  5
Joined:  2008-06-13
 

Yeah, I can’t find anything wrong. Help? :(

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52302 users|472 users currently online|105622 forum posts