Show all category under a category named “Product”

Go to your template folder and open Catalog/navigation/top.phtml
and add this


<?php $URL= Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
	  // echo $URL;
?>
<div class="header-nav-container">
    <div class="header-nav">
        <h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4>
        <ul id="nav">
		<li><a href="<?php echo $this->getUrl() ?>"><?php echo $this->__('Home') ?></a></li>
        <?php /*?><?php foreach ($this->getStoreCategories() as $_category): ?>
            <?php echo $this->drawItem($_category) ?>
        <?php endforeach ?><?php */?>
		<li onmouseover="toggleMenu(this,1)" onmouseout="toggleMenu(this,0)">
            <a href="<?php echo $this->getUrl('') ?>"><?php echo $this->__('Products') ?></a>
			<ul>
				<?php foreach ($this->getStoreCategories() as $_category): ?>
				    <?php echo $this->drawItem($_category) ?>
				<?php endforeach ?>
			</ul>
		</li>
		<li><a href="<?php echo $URL?>customer/account/login/" >Log in</a></li>
        <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('menu')->toHtml(); ?>
        </ul>
    </div>
    <?php echo $this->getChildHtml('topLeftLinks') ?>
</div>

Advertisements

Tagged: ,

%d bloggers like this: