Skip to main content

Posts

Showing posts from March, 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->_

How to Show product Price in product List page

first add this code block after list or grid mode wherever you want <?php if($_product->isConfigurable()): ?>  <?php $attributes = $_product->getTypeInstance(true)->getConfigurableAttributes($_product) ?>  <?php if(count($attributes)): ?> <?php foreach($attributes as $att): ?>  <?php $pAtt=$att->getProductAttribute(); //get the child products $allProducts = $_product->getTypeInstance(true)->getUsedProducts(null, $_product); $frontValues =array() ?>   <?php //echo $pAtt->getFrontendLabel() ?>   <?php foreach($allProducts as $p): ?>  <?php if(!$p->isSaleable()) continue; ?> <?php $out=$p->getAttributeText($pAtt->getName()); ?> <?php $frontValues[$out]=$out; ?>   <?php endforeach ?> <?php endforeach ?> <?php endif ?> <?php endif ?> <?php /* if ($_product->getData('type_id')