cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Breadcrumbs to Customer Account Pages

Adding Breadcrumbs to Customer Account Pages

Hello,

 

i wanted to adding breadcrumbs to the customer account pages (login / register /  myaccount)

but if i set this in the local.xml it does not work

<customer_account> 
        <reference name="root">
            <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
        </reference>
		
        <reference name="breadcrumbs">
            <action method="addCrumb">
                <crumbName>Home</crumbName>
                <crumbInfo><label>Home</label><title>Home</title><link>/</link></crumbInfo>
            </action>
            <action method="addCrumb">
                <crumbName>My Account</crumbName>
				<crumbInfo><label>My Account</label><title>My Account</title><link>/customer/account/</link></crumbInfo>
            </action>
        </reference>  
		
        <reference name="left">
            <!-- remove cart sidebar -->
            <action method="unsetChild"><name>cart_sidebar</name></action>
        </reference> 
    </customer_account>
    
	<customer_account_index>
		<reference name="breadcrumbs">
            <action method="addCrumb">
                <crumbName>Home</crumbName>
                <crumbInfo><label>Home</label><title>Home</title><link>/</link></crumbInfo>
            </action>
            <action method="addCrumb">
                <crumbName>My Account</crumbName>
				<crumbInfo><label>My Account</label><title>My Account</title><link>/customer/account/</link></crumbInfo>
            </action>
        </reference>
	</customer_account_index>
    
	<customer_account_edit>
		<reference name="breadcrumbs">
            <action method="addCrumb">
                <crumbName>Home</crumbName>
                <crumbInfo><label>Home</label><title>Home</title><link>/</link></crumbInfo>
            </action>
            <action method="addCrumb">
                <crumbName>My Account</crumbName>
				<crumbInfo><label>My Account</label><title>My Account</title><link>/customer/account/</link></crumbInfo>
            </action>
        </reference>
	</customer_account_edit>

 if i add the breadcrumb also in customer_logged_in and customer_logged_out i get the breadcrumb in login and register but the  breadcrumb is added to all pages (for ex. home > product > myprouduct > home > myaccount)

 

Thanks four your help

2 REPLIES 2

Re: Adding Breadcrumbs to Customer Account Pages

This should work (I've just tested it).

 

It seems that your local.xml layout file is being parsed

 

Search all of your layout files for any use of breadcrumbs to see what might be happening - I suspect it's been removed or unset in the context of the customer_account layout hndle.

-----
@benmarks, Senior Manager, Strategy & Growth

Re: Adding Breadcrumbs to Customer Account Pages

Looking good! But I don't have much experience in developing so I solved this problem with help of this extension http://www.magentocommerce.com/magento-connect/advanced-breadcrumbs-9171.html