Magento Rename Admin Path After Installation


Magento rename admin path

Changing admin path name is one of the important steps to secure your magento store.There is an option to change default admin path during installation.But you can also rename admin path after installation.

To rename admin path,

Goto to /app/etc and  open local.xml file.

Find the text ![CDATA[admin]] in the file(around line no.57).This is the default admin path.

Change admin name to some other name like mystore and save it.

So it will look like ![CDATA[mystore]] and admin url will be

http://www.your-domain.com/mystore

——————

For Magento 1.4.1.1

 

Advertisements

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