Skip to content

Instantly share code, notes, and snippets.

@bekapod
Created January 29, 2014 15:41
Show Gist options
  • Save bekapod/74ad65cd62fd5ece5c77 to your computer and use it in GitHub Desktop.
Save bekapod/74ad65cd62fd5ece5c77 to your computer and use it in GitHub Desktop.
MAGENTO: Breadcrumbs on Account Pages
<?xml version="1.0"?>
<layout version="0.1.0">
<!--
///////////////////////////////////////////////////////
/////// BREADCRUMBS IN CUSTOMER ACCOUNT AREA ////////
///////////////////////////////////////////////////////
add default crumbs to display in all the customer account pages
this will add Home / My Account crubms.
-->
<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>
<!-- BILING AGREEMENT -->
<sales_billing_agreement_index>
<reference name="breadcrumbs">
<action method="addCrumb"><crumbName>Billing Agreements</crumbName><crumbInfo><label>Billing Agreements</label><title>Billing Agreements</title></crumbInfo></action>
</reference>
</sales_billing_agreement_index>
<sales_recurring_profile_index>
<reference name="breadcrumbs">
<action method="addCrumb"><crumbName>Recurring Profiles</crumbName><crumbInfo><label>Recurring Profiles</label><title>Recurring Profiles</title></crumbInfo></action>
</reference>
</sales_recurring_profile_index>
<!-- PRODUCT REVIEW -->
<review_customer_index translate="label">
<reference name="breadcrumbs">
<action method="addCrumb"><crumbName>My Product Reviews</crumbName><crumbInfo><label>My Product Reviews</label><title>My Product Reviews</title></crumbInfo></action>
</reference>
</review_customer_index>
<!-- MY TAGS -->
<tag_customer_index translate="label">
<reference name="breadcrumbs">
<action method="addCrumb"><crumbName>My Tags</crumbName><crumbInfo><label>My Tags</label><title>My Tags</title></crumbInfo></action>
</reference>
</tag_customer_index>
<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>
<downloadable_customer_products translate="label">
<reference name="breadcrumbs">
<action method="addCrumb"><crumbName>Downloadable Customer Products</crumbName><crumbInfo><label>Downloadable Customer Products</label><title>Downloadable Customer Products</title></crumbInfo></action>
</reference>
</downloadable_customer_products>
<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>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment