I want a navigation menu build with a specific product attribute in magento 1.9.2 and product count will also show there like: Samsung (14) Hyundai (13) Asus (44)
Can any one great help me please and many many thanks in advance.
in /default/template/page/html/topmenu/renderer.phtml replace this line with this
$html .= '<a href="'. $child->getUrl() .'" class="'. $outermostClassCode .' '. $_hasChildren .'">'. $this->escapeHtml($this->__($child->getName())) .'</a>';
with this
$cat_id = preg_replace("/[^0-9]/", '', $child->getID()); $products_count = Mage::getModel('catalog/category')->load($cat_id)->getProductCount(); $html .= '<a href="'. $child->getUrl() .'" class="'. $outermostClassCode .' '. $_hasChildren .'">'. $child->getBrand().($products_count) .'</a>';
$child->getBrand() replace Brand with you attribute name