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?
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.
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 , as you have the top links and such.
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.
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.
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?
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.
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.
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
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.