Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Page 1 of 2
no breadcrumbs on the shopping cart? 
 
Pablo Lopez
Member
 
Avatar
Total Posts:  51
Joined:  2008-01-17
 

I don’t know if anybody notice..but when you add a product to your shopping cart , or when you go to the sopping cart, the breadcrumbs are gone.
Anyone knows why ? or how to show the breadcrumbs there?

 
Magento Community Magento Community
Magento Community
Magento Community
 
nafnaf1000
Sr. Member
 
Total Posts:  119
Joined:  2008-02-21
 

If you look at Amazon’s site you will see that most of the links are gone....

and once you enter the shopping cart all the links are gone. This is done so that you you forget about any other items that you wanted and all you can think about is placing the order....

so, this is a good this and i would like to see have an option in magento to do the same.

What do you think.,

 
Magento Community Magento Community
Magento Community
Magento Community
 
Pablo Lopez
Member
 
Avatar
Total Posts:  51
Joined:  2008-01-17
 

nafnaf ; i see what you mean...also, I know is kinda lame to put a breadcrumb for the shopping cart, which will only display something like “home -> shopping cart” , but I’m looking at this more like a consistency thing.
The same happens on “my account”....

In the design I’m working on , the breadcrumb section has an important visual impact, and when you add a product or enter the cart there is a void there.....
I believe that the all time best idea will be to have the breadcrumbs selectable on the correct layout .xml file. So you can tweak this the way you wish smile, as you have the top links and such.

 
Magento Community Magento Community
Magento Community
Magento Community
 
nafnaf1000
Sr. Member
 
Total Posts:  119
Joined:  2008-02-21
 

I believe that the all time best idea will be to have the breadcrumbs selectable on the correct layout .xml file

I do not want to ever cheancg code, I will mess it up.  rasberry

I belive that all opthions have to be in user interfacem, nover to change code…

 
Magento Community Magento Community
Magento Community
Magento Community
 
iblastoff
Sr. Member
 
Total Posts:  253
Joined:  2007-08-31
 
nafnaf1000 - 28 February 2008 01:10 PM

I believe that the all time best idea will be to have the breadcrumbs selectable on the correct layout .xml file

I do not want to ever cheancg code, I will mess it up.  rasberry

I belive that all opthions have to be in user interfacem, nover to change code...

uhhh sorry but you’re most definitely going to have to change code at some point unless you plan on using the default theme for everything. if you want a pure wysiwyg design editor then magento will most definitely not be your thing.

 Signature 

stevelam.ca | xpattern.net

 
Magento Community Magento Community
Magento Community
Magento Community
 
nafnaf1000
Sr. Member
 
Total Posts:  119
Joined:  2008-02-21
 

umm. On zen cart and osc I do not have to change any code......

I can change theems all day long and add mod, but i never changed any code....

 
Magento Community Magento Community
Magento Community
Magento Community
 
Pablo Lopez
Member
 
Avatar
Total Posts:  51
Joined:  2008-01-17
 

naf naf:
I work with zencart too, and I now what you mean. In zencart you have a layout admin, with where you can move the sideboxes, allow banners, etc.
On magento it works in other way (at least for the moment), with some xml layout files.
You should take a look at the designers guide , specially on the layouts section or at the templating screencast, or browse the forum on the css xml threads

Btw...this is getting a bit out of topic.

So.....
Anyone can help me out on the breadcrumbs thing? smile

Cheers

 
Magento Community Magento Community
Magento Community
Magento Community
 
Pablo Lopez
Member
 
Avatar
Total Posts:  51
Joined:  2008-01-17
 

Still didn’t figure this out…
anyone?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Aldo
Member
 
Total Posts:  46
Joined:  2008-02-19
 

Yes, would be great to know!

Tahnks,
Aldo

 
Magento Community Magento Community
Magento Community
Magento Community
 
Aldo
Member
 
Total Posts:  46
Joined:  2008-02-19
 

Someone any idea?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Matt Puchlerz
Jr. Member
 
Total Posts:  15
Joined:  2008-01-09
Lisle, IL
 

I was just looking into to this today, and unfortunately, I don’t think it’s possible just to use the layout XML files to add breadcrumbs.

The reason I thought that it might work was due to the existence of blocks such as:

<block type="page/template_links" name="my-cool-links" as="my-cool-links">
    
    <
action method="addLink" translate="label title" module="page">
        <
label>Cool Link</label>
        <
url>/</url>
        <
title>Title for Cool Link</title>
        <
prepare>true</prepare>
        <
urlParams/>
        <
position>10</position>
        <
liParams/>
        <
aParams>class="active"</aParams>
    </
action>
    
</
block>

I believe the problem lies in the way the Mage_Page_Block_Html_Breadcrumbs::addCrumb() method is structured. The Mage_Page_Block_Template_Links::addLink() method — called by the action XML block above — has individualized parameters, whereas the addCrumb() method’s parameters are all conveniently nested in an array. Therefore, the action block has no way of knowing how to pass the XML-based parameters to the addCrumb() method. oh oh

So to make a long story short, you’re going to need to modify or extend Mage_Checkout_Block_Cart to add in the breadcrumbs.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Aldo
Member
 
Total Posts:  46
Joined:  2008-02-19
 

Thanks a lot for your answer.
Let’s hope the magento developers will introduce this in the next release.

 
Magento Community Magento Community
Magento Community
Magento Community
 
nekosan
Jr. Member
 
Avatar
Total Posts:  17
Joined:  2008-07-15
 

Hello

Here’s how I added breadcrumbs for most of the parts in my site.
I had the same issue. The breadcrumbs had a major visual impact, and needed them on every page. Yes, even if the text was “Home > Shopping cart”.

all I did is modify/add the _prepareLayout() function in all block classes i needed.

For example, for the customer account, newsletter area:

public function _prepareLayout()
    
{
        
// add Home breadcrumb
        
$this->getLayout()->getBlock('breadcrumbs')
            ->
addCrumb('home',
                array(
'label'=>Mage::helper('catalogsearch')->__('Home'),
                    
'title'=>Mage::helper('catalogsearch')->__('Go to Home Page'),
                    
'link'=>Mage::getBaseUrl())
                )
            ->
addCrumb('customer',
                array(
'label'=>Mage::helper('customer')->__('Newsletter Subscription'))
                );
      return 
parent::_prepareLayout();
    
}

Unfortunately I had to add it to any other block I needed it. But I guess you could always overwrite the abstract block class, and add a _prepareLayout method that just
gets the current model/controller and display a path out of that. Anywayz, best of luck

 
Magento Community Magento Community
Magento Community
Magento Community
 
Aldo
Member
 
Total Posts:  46
Joined:  2008-02-19
 

Hi nekosan,

Could you tell me please the exact file you edited?

Thanks a lot!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Greatmedia
Sr. Member
 
Total Posts:  109
Joined:  2008-05-15
The Netherlands
 

pff i think i have opend like 3 topics about breadcrumbs, ist imposible to get them on every page without editing the php files… still waiting for someone who found how to do it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Aldo
Member
 
Total Posts:  46
Joined:  2008-02-19
 

Is there a reaspn why it is not possible or it has just been forgotten?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52171 users|967 users currently online|105393 forum posts