Skip to main content

Posts

Showing posts from March 10, 2015

Get product Image in Top Menu in magento 1.9.1

app\code\local\Mage\Catalog\Model\Observer.php find function _addCategoriesToMenu() replace $categoryData = array(                 'name' => $category->getName(),             'id' => $nodeId,             'url' => Mage::helper('catalog/category')->getCategoryUrl($category),             'is_active' => $this->_isActiveMenuCategory($category),             'thumbnail' => Mage::getModel('catalog/category')->load($category->getId())->getImage()             ); app\code\local\Mage\Page\Block\Html\Topmenu.php find function getHtml() remove  if ($renderer = $this->getChild('catalog.topnav.renderer')) {             $renderer->setMenuTree($this->_menu)->setChildrenWrapClass($childrenWrapClass);             $html = $renderer->toHtml();         } else {             $html = $this->_getHtml($this->_menu, $childrenWrapClass);         } add $html = $this->_