/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
this code works for vertical navigation category� <?php /** * Top menu for store * * @see Mage_Catalog_Block_Navigation */ ?> <div class=�box_mini_vert�> <div id=�vertical-nav-container �> <?php foreach ($this->getStoreCategories() as $_category): ?> <?php foreach ($this->getCurrentChildCategories() as $_categories): ?> /*in this line $_categories->getUrl() is present so you can get link of your categories*/ <ul class=�vert_left_list_style�> <li><b><?php echo �<br/>� ?><a href=�<?php echo $_categories->getUrl() ?>�><?php echo $_categories->getName(); ?></a></b></li> </ul> <ul> <?php foreach ($_categories->getChildren() as $childcategory):?> <?php echo $this->drawItem($childcategory) ?> <?php endforeach; ?> </ul> <?php endforeach; ?> </div> </div>
URL: http://freecoderesources.wordpress.com/2009/02/26/magento-vertical-navigation-category-with-links/