Friday, July 13, 2012

How to add breadcrumb on contact us page in magento

If want to add breadcrumbs on the contact us page ,
open the layout file of your theme contacts.xml and serach the following code between
 the
   <contacts_index_index translate="label">
.......
......
</contacts_index_index>

and add the following line of code


<reference name="breadcrumbs">
        <action method="addCrumb">
            <crumbName>Home</crumbName>
            <crumbInfo>
                <label>Home</label>
                <title>Home</title>
                <link>/</link>
            </crumbInfo>
        </action>
        <action method="addCrumb">
            <crumbName>Contacts</crumbName>
            <crumbInfo>
                <label>Contact Us</label>
                <title>Contact Us</title>
            </crumbInfo>
        </action>
    </reference>


Tuesday, July 10, 2012

How to remove customer data only from session in magento

If you want to remove only customer data from the magento session you can try like

Mage::getSingleton('customer/session')->unsetAll() ;


and enjoy!!!!!!!