I'm customizing rwd theme. I'm not able to show breadcrumb on product page.
In admin breadcrumb is enabled for CMS pages. Inside rwd/default/layout/page.xml
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
is present.
Even I tried adding
<block reference="header">
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
to default handle in page.xml
Inside catalog/product/view.phtml I've tried following codes
<?php echo $this->getLayout()->getBlock('breadcrumbs')->toHtml(); ?>
and
<?php echo $this->getChildHtml('breadcrumbs') ?>
Still it's not appearing on product page.
Best Answer
In default rwd theme the breadcrumbs are coming on product details page.
Check at Template file:
Basically magento calls the breadcrumb in root template files
1column.phtml
,2columns-left.phtml
etc. using the code<?php echo $this->getChildHtml('breadcrumbs') ?>
.Check at page.xml
And on
page.xml
it defines the breadcrumb block. You need to check this at thing on product details page.Check at other layout file:
You need check any layout code that might remove the breadcrumb using below code:
or