RSS

Tag Archives: magento

Magento Remove Currency Selector


Go to app/design/frontend/{Your Interface}/{Your theme}/layout/directory.xml
Find the code around line no 44 that looks like this

    <catalog_category_layered>
        <reference name="left">
            <block type="directory/currency" name="currency" before="catalog.leftnav" template="directory/currency.phtml"/>
        </reference>
    </catalog_category_layered>

Comment the code

——————

For Magento 1.4.1.1

 
Leave a comment

Posted by on January 12, 2011 in Magento

 

Tags: , , , , , , , ,

Magento Blank Theme Installation Problem


After installing blank theme in magento,an error will appear like this,

Fatal error:Call to a member function toHtml() on a non-object in /app/code/core/Mage/Core/Model/Layout.php on line 529

To fix this error,go to /app/design/frontend/default/blank/layout/ and open page.xml file.

Find the code around line no 89, which looks like this,

<block type="core/profiler" output="toHtml" />

Change it to

<block type="core/profiler" output="toHtml" name="core_profiler"/>
 
Leave a comment

Posted by on December 21, 2010 in Magento, PHP

 

Tags: , , , , , , , ,

Magento-Display Shopping Cart in Header


Go to app\design\frontend\base\default\template\page\html\header.phtml
Add the following code inside the header-container div to display total number of  items and price in header .

<?php
  $count = $this->helper('checkout/cart')->getSummaryCount();  //get total items in cart
  $total = $this->helper('checkout/cart')->getQuote()->getGrandTotal(); //get total price
  if($count==0)
  {
    echo $this->__('Items: %s',$count);
  }
  if($count==1)
  {
    echo $this->__(' Item: %s',$count);
  }
  if($count>1)
  {
    echo $this->__(' Items: %s',$count);
  }
  echo $this->__(' Total: %s', $this->helper('core')->formatPrice($total, false));
?>

——————
For Magento 1.4

 
6 Comments

Posted by on November 24, 2010 in Magento

 

Tags: , , , , , , , , , , ,