Magento-Move Newsletter From Left To Right


Go to app/design/frontend/{Your interface}/{Your theme}/layout\newsletter.xml

Find the code that looks like this

<default>
<!-- Mage_Newsletter -->
<reference name="left">
<block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
</reference>
</default>

Change reference name from left to right

<default>
<!-- Mage_Newsletter -->
<reference name="right">
<block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
</reference>
</default>

——————
For Magento 1.4

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