Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set breadcrumb for one of the pages of Magento?

Tags:

magento

I have this page for instance that doesn't have a proper breadcrumb set: http://www.princessly.com/checkout/cart/

It's just "Home >>" and that's it.

How can I make it "Home >> Shopping Cart"?

Thus far I can only find the breadcrumb template which is template/page/html/breadcrumbs.phtml but I have no idea how to make this change.

I suppose I should add a line in the shopping cart page template?

like image 662
datasn.io Avatar asked Dec 27 '22 08:12

datasn.io


1 Answers

Try adding the following code to local.xml of your theme:

<checkout_cart_index>
    <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>Shopping Cart</crumbName>
            <crumbInfo><label>Shopping Cart</label><title>Shopping Cart</title><link>/checkout/cart</link></crumbInfo>
        </action>
    </reference>
</checkout_cart_index>
like image 129
user487772 Avatar answered Jan 08 '23 18:01

user487772