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

How to Create Drop down Menu in magento 1.6.2.0
 
meet2teju
Jr. Member
 
Total Posts:  14
Joined:  2012-02-21
 

Hi,
I have couple of day try to Custom Drop Down menu in mangento

<?php $subcategory Mage::getBaseUrl()."catalog/product/subcategorylist";       ?>

<?php $_menu 
$this->renderCategoriesMenuHtml(0,'level-top'?>
<?php 
if($_menu): ?>
<div class="nav-container">
    <
ul id="nav" class="nav2">
        
<?php echo $_menu ?>
    
</ul>
</
div>
<?php endif ?>

<div class="main_navigation">
<
div class="nav-container">
  <
ul class="nav2">
  
<?php $_helper Mage::helper('catalog/category'?>
<?php $_categories 
$_helper->getStoreCategories() ?>
<?php $currentCategory 
Mage::registry('current_category'?>
<?php 
if (count($_categories) > 0): ?>
    
<ul>
        
<?php foreach($_categories as $_category): ?>                
            
<li>
            
<?php $id1 $_category->getId() ?>    
                
<a href="<?php echo $subcategory.'?id='.$id1 //$_helper->getCategoryUrl($_category) ?>">                                    
                    
<?php echo $_category->getName() ?>                    
                
</a>
                
<?php $_category Mage::getModel('catalog/category')->load($_category->getId()) ?>
                <?php $_subcategories 
$_category->getChildrenCategories() ?>
                <?php 
if (count($_subcategories) > 0): ?>
                    
<ul>
                        
<?php foreach($_subcategories as $_subcategory): ?>
                            
<li>                                
                                 
<?php $temp $_subcategory->getId() ?>
                                
<a href="<?php echo $subcategory.'?id='.$temp //$_helper->getCategoryUrl($_subcategory) ?>">
                                    
<?php //echo $_subcategory->getName() ?>                                     
                                
</a>                            
                            </
li>                            
                        
<?php endforeach; ?>
                    
</ul>
                
<?php endif; ?>
            
</li>                        
        
<?php endforeach; ?>
    
</ul>
<?php endif; ?>

  
</ul>
</
div>
</
div>

Any idea ?
Plz Help Me…

 
Magento Community Magento Community
Magento Community
Magento Community
 
meet2teju
Jr. Member
 
Total Posts:  14
Joined:  2012-02-21
 

I have to slove this question

 
Magento Community Magento Community
Magento Community
Magento Community
 
haileysportal
Jr. Member
 
Total Posts:  1
Joined:  2013-09-08
 

I’ll go and see too.thanks.

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