I don't want the user to ever be able to go to the catalog page. Is there a way to remove it from the breadcrumb?
It's in the catalog settings at admin/store/settings/catalog/edit.
awesome, thank you
Hi There,
Perhaps I am missing something but this doesnt seem to work for me.
In admin/store/settings/catalog/edit I uncheck 'Display the catalog breadcrumb' / This removes the breadcrumb entirely except for the 'Home' link.
On a product page where I have Home > Catalog > Category id still like it to display Home > Category
Any help would be much appreciated 
Well, I had the same problem, and this is how I solved it, which was not ideal, because it involved actually hacking ubercart core. On line 1188 of uc_catalog.module, there is some code that says:
if ($tid != 0) {
$breadcrumbs[] = l(variable_get('uc_catalog_name', t('Catalog')), 'catalog');
}
Comment those lines out, and the Catalog link will be removed from the breadcrumb.
Tell me if there is a way to do this with hooks, please, so as not to hack uc_catalog.module
Thanks.
The usual way would be to override theme_breadcrumb() - have you tried that?
Thanks, let me give that a try... that would be much better if it works.
Taking TR's advice, I implemented this hook in my theme as follows:
function phptemplate_breadcrumb($breadcrumb) {
foreach( $breadcrumb as $key=>$crumb )
if( strpos( $crumb, '>Catalog<' ) )
array_splice($breadcrumb, $key, 1);
if (!empty($breadcrumb)) {
return ''. implode(' › ', $breadcrumb) .'';
}
}
Thanks, that works fine
Apparently, that only solves this issue for the catalog pages. For the node pages, there is another place that needs to be hacked. On line 171 of uc_catalog.module, comment out the line that says:
$crumbs[] = l(variable_get('uc_catalog_name', t('Catalog')), variable_get('uc_catalog_url','catalog'));
That's it; thanks.
Hello,
I have tried to follow the instructions to comment out the line of code above but it has no effect on my node page. Any suggestions? I created custom catalog pages with views and I do not want any links to the default catalog pages on my site.
I have attached a screen shot of the links that keep coming up on my product node pages. I have them set to not show up in my store configuration and have tried to follow suggestions in this forum:(
If you can help that would be great.
Thank you
| Attachment | Size |
|---|---|
| breadcrumbs.jpg | 26.49 KB |




