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
   <contacts_index_index translate="label">

and add the following line of code

<reference name="breadcrumbs">
        <action method="addCrumb">
        <action method="addCrumb">
                <label>Contact Us</label>
                <title>Contact Us</title>

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