Tuesday 12 May 2015

Magento how to add breadcrumbs to my account page

<customer_account translate=”label”>
    <reference name=”breadcrumbs”>
        <action method=”addCrumb”>
            <crumbName>Home</crumbName>
            <crumbInfo>
                <label>Home</label>
                <title>Home</title>
                <link>/home</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>
<!– ACCOUNT SECTIONS –>     <!–Add Dashboard crumb on My Dashboard page–>
<customer_account_index translate=”label”>
    <reference name=”breadcrumbs”>
        <action method=”addCrumb”>
            <crumbName>Dashboard</crumbName>
            <crumbInfo>
                <label>Dashboard</label>
                <title>Dashboard</title>
            </crumbInfo>
        </action>
    </reference>
</customer_account_index>
<!–Add Account Information crumb on Account Information page–>
<customer_account_edit translate=”label”>
    <reference name=”breadcrumbs”>
        <action method=”addCrumb”>
            <crumbName>Account Information</crumbName>
            <crumbInfo>
                <label>Account Information</label>
                <title>Account Information</title>
            </crumbInfo>
        </action>
    </reference>
</customer_account_edit>
<!– ADDRESS BOOK –>
<customer_address_index translate=”label”>
    <reference name=”breadcrumbs”>
        <action method=”addCrumb”>
            <crumbName>Address Book</crumbName>
            <crumbInfo>
                <label>Address Book</label>
                <title>Address Book</title>
            </crumbInfo>
        </action>
    </reference>
</customer_address_index>
<customer_address_form translate=”label”>
    <reference name=”breadcrumbs”>
        <action method=”addCrumb”>
            <crumbName>Address Book</crumbName>
            <crumbInfo>
                <label>Address Book</label>
                <title>Address Book</title>
                <link>/customer/address/</link>
            </crumbInfo>
        </action>
        <action method=”addCrumb”>
            <crumbName>Add/Edit Address</crumbName>
            <crumbInfo>
                <label>Add/Edit Address</label>
                <title>Add/Edit Address</title>
            </crumbInfo>
        </action>
    </reference>
</customer_address_form>
<!– MY ORDERS –>
<sales_order_history translate=”label”>
    <reference name=”breadcrumbs”>
        <action method=”addCrumb”>
            <crumbName>My Orders</crumbName>
            <crumbInfo>
                <label>My Orders</label>
                <title>My Orders</title>
            </crumbInfo>
        </action>
    </reference>
</sales_order_history>
<sales_order_view translate=”label”>
    <reference name=”breadcrumbs”>
        <action method=”addCrumb”>
            <crumbName>My Orders</crumbName>
            <crumbInfo>
                <label>My Orders</label>
                <title>My Orders</title>
                <link>/sales/order/history/</link>
            </crumbInfo>
        </action>
        <action method=”addCrumb”>
            <crumbName>Order View</crumbName>
            <crumbInfo>
                <label>Order View</label>
                <title>Order View</title>
            </crumbInfo>
        </action>
    </reference>
</sales_order_view>
<wishlist_index_index translate=”label”>
    <reference name=”breadcrumbs”>
        <action method=”addCrumb”>
            <crumbName>My Wishlist</crumbName>
            <crumbInfo>
                <label>My Wishlist</label>
                <title>My Wishlist</title>
            </crumbInfo>
        </action>
    </reference>
</wishlist_index_index>
<newsletter_manage_index translate=”label”>
    <reference name=”breadcrumbs”>
        <action method=”addCrumb”>
            <crumbName>Newsletter Manage</crumbName>
            <crumbInfo>
                <label>Newsletter Manage</label>
                <title>Newsletter Manage</title>
            </crumbInfo>
        </action>
    </reference>
</newsletter_manage_index>

No comments:

Post a Comment