RSS

Category Archives: Magento

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
 
Leave a comment

Posted by on January 24, 2011 in Magento

 

Tags: , , , , , , , ,

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-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

 
2 Comments

Posted by on November 25, 2010 in Magento

 

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: , , , , , , , , , , ,