Skip to main content

Posts

Add Rating Star in product in magento

Step :1   Go to app/design/frontend/base/default/template/catalog/product/view.phtml   In the  view .phtml  file find the following code  <?php //echo $this->getReviewsSummaryHtml($_product, false, true)?> Replace with this code:  <?php echo $this->getReviewsSummaryHtml( $_product, 'short' )?>

ADD “HOME” LINK IN MAGENTO TOP NAVIGATION MENU

design/frontend/default/yourtheme/template/page/html/topmenu.phtml /*design/frontend/default/yourtheme/template/catalog/navigation/top.phtml*/ replace following code to:- <?php $_menu = $this ->getHtml( 'level-top' ) ?> <?php if ( $_menu ): ?> <div class = "nav-container" >      <ul id= "nav" >           <!-- HOME BUTTON HACK -->          <?php $_anyActive = false; foreach ( $this ->getStoreCategories() as $_category ) { $_anyActive = $_anyActive || $this ->isCategoryActive( $_category ); } ?>          <li class = "<?php echo !$_anyActive ? 'active' : '' ?>" ><a href= "<?php echo $this->getUrl('')?>" ><?php echo $this ->__( 'Home' ) ?></a></li>          <!-- HOME BUTTON HACK -->          <?php echo $_menu ?>      </ul> </div> <?php endif ?>

Show category Image in main Navigation in magento

In Model file. (/app/code/core/Mage/Catalog/Model/Observer.php) Update following code in Function Name: _addCategoriesToMenu $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 ())-> getThumbnail () ); Then go into Html folder. (app/code/core/Mage/Page/Block/Html/Topmenu.php) Update the following line of code at line 131 in Function name: _getHtml replace : $html .= '<li ' . $this->_getRenderedMenuItemAttributes($child) . '>';             $html .= '<a href="' . $child->getUrl() . '" ' . $outermostClassCode . '>