How to setup Custom breadcrumbs for ubercart product nodes and menu items
Danny_Joris - July 20, 2009 - 01:47
| Project: | Custom Breadcrumbs |
| Version: | 6.x-2.x-dev |
| Component: | custom_breadcrumbs |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Hey all,
With custom_breadcrumbs 6.x-2.x-dev I already managed to give correct breadcrumbs to a image album. Now I'm trying to do the same with my ubercart product catalog. I started out with trying to give the product nodes a custom breadcrumb, but it didn't connect with the settings I made. It only corresponds with the breadcrumb settings in the custom theme settings.
I hope there is a sollution for this, because i love this module. As I said, it works awesome with my custom image gallery.
If there is more information on this needed, please ask. I don't really know what more information to give with a problem like this.
Cheers,
Danny

#1
I found out that when i uninstall "Custom Breadcrumbs for Taxonomy 6.x-2.x-dev" that it works perfect again. I didn't even use the taxonomy breadcrumb module. Only the fact that it was installed, made it not work.
Because I'm working with the Ubercart catalog, I'll need breadcrumbs for taxonomy categories. Ubercart works with taxonomy for the product categories. I'm going to use Custom Breadcrumbs for Paths then. It's not the cleanest way, but it might do the trick for now.
In the attachment the modules I have installed if that is of any help. The only 'uninstalled' module is google analytics.
Again, i love this module. :)
Cheers
--EDIT: I tried the path module to fix my taxonomy breadcrumbs. Did not work recognised my path-settings. That's all I can do I guess. Too bad.
#2
#3
Can you tell me what you meant when you said
What are your settings?
How did you set up the custom breadcrumbs title, paths, etc?
What did you expect the breadcrumb to be?
What was it actually?
If you change to one of the core themes, does this fix the problem?
If so, then you might have to adjust your theme to allow custom_breadcrumbs to work. How you do this depends on your theme, but I would start looking in page.tpl.php and template.php to see if it is modifying the $breadcrumb variable.
Again, I am lost here. In what way (specifically) was it not working ? And then, when the cb taxonomy module is enabled, what did it do to the breadcrumbs? In what way did it "not work"?
Also, there have been some bugfixes so it would help to install the latest dev and see if the problems persist.
Thanks for testing.
#4
Hey,
I have the latest 6.x-2.x-dev (2009-Jul-21) version. Changing to the Garland theme does not change the problem.
-> To set it clear: setting up a new custom_breadcrumb type always works (the admin-pages). Its the result on the nodes that does not always show. It shows a breadcrumb, but that would be the theme default as if the custom_breadcrumbs module was not installed. Anyway, if I turn off the taxonomy module, it works again (which means that it shows the breadcrumbs as I have set up).
It has nothing to do with my custum_breadcrumb settings. They work fine as long as "Custom Breadcrumbs for Taxonomy" is not enabled.
Hope this clears things up a little bit. I'll post some more screenshots later if the problem is not clear to you.
Thanks a lot for your assisctance.
Cheers,
Danny
#5
Its been a couple of months and there has been a lot of changes in 6.x-2.x-dev. Can you try the latest version and let me know if you are still seeing this problem?
#6
Hi MGN,
I updated to the Dev-version. The conflict with Breadcrumbs For Taxonomy is fixed. It runs smooth. I still have an issue however, maybe it's more a support request.
My Ubercart catalog is based on taxonomy terms. First there is the vocabulary page called 'Catalog' (/catalog). This page shows the different catalog sections or 'terms'. If you go to one of these terms (/catalog/term), you will see a list of products, which are all nodes (/catalog/term/producttitle).
I manage to get my breadcrumbs on the product nodes perfectly. I also figured out that configuring terms-breadcrumbs will override the breadcrumbs on my nodes, so I changed the weight in the admin section.
My problem is that I can't get my custom breadcrumbs working for - catalog and catalog/term - . I tried with vocabulary and terms breadcrumbs, but this didn't work. The Terms breadcrumb was overriding my nodes instead of were i expected them to work, being - catalog/term.
It also does not work with path-breadcrumbs. However I get path-breadcrumbs working anywhere else. For example the cart and the checkout sections...
I hope my description was clear enough. Thanks in advance.
Cheers,
Danny
#7
#8
Ok, I solved it for myself, but I would like to know your opinion about this, MGN.
I found out that by disabling the breadcrumbs for the ubercart catalog, I could use breadcrumbs per path again to make my breadcrumbs. Without disabling this option, I couldn't do this. Disabling breadcrumbs for the ubercart catalog happens here:
admin/store/settings/catalog/edit/catalog.Because the only way I could do this is with 'path', I also could not use the tokens, for example [term-raw]. That's why I made a setting for all the terms. I had only 4 terms, so no big deal in my case.
I still have no clue about how I would have done this with custom_breadcrumbs for taxonomy though. Setting a breadcrumb up via
admin/build/custom_breadcrumbs/taxonomy_term/addoradmin/build/custom_breadcrumbs/taxonomy_vocabulary/adddoes not work.This is probably a 'by design' issue, but maybe it's something that can go in the documentation, because it took me a while to find the sollution.
Cheers,
Danny
#9
How are you doing the catalog and terms pages? Are they Views? or a callback from another module (perhaps ubercart?) or ... ?
The node-type tokens [term], [termpath] etc. can only be used if there is a possibility of loading a node object from the page. If the page just has a list of taxonomy terms, then you can't use the node type tokens. But node tokens could be used in a custom breadcrumbs for views page where the view returns a list of nodes.
If a view returns a list of taxonomy terms, then the taxonomy tokens will work.
Similarly, taxonomy breadcrumbs will work if custom breadcrumbs can get a taxonomy object from something on the page (like a node), or from an argument passed to a view. It will check the taxonomy terms (or vocabulary) associated with the object (or argument) and look for a match against defined custom breadcrumbs.
I hope this helps. Sorry I don't know much about Ubercart!
#10
Hi,
Thanks for your clear explanation. Ubercart shows by default a menu item called 'catalog' which shows all the terms (with Icon) of the vocabulary 'catalog'. If you click one of the terms there will be a list (links with image) of all the products available with that term.
I think this is generated directly by the Ubercart module. I will definitely use views next time i build an online store with ubercart.
I don't know much about Ubercart's inner structure, but you might want to ask Lyle or Ryan about this.
Cheers,
Danny
#11
Since 'catalog' is a menu item created by ubercart, your options are somewhat limited - it may share the name of a taxonomy vocabulary, but custom breadcrumbs doesn't have access to that information. You can use custom_breadcrumbs_paths to set the breadcrumb by path, but the taxonomy tokens won't work. Another possibility would be for you to provide your own taxonomy-aware view to replace the 'catalog' menu item. Then you could use custom_breadcrumbs_taxonomy and make use of the taxonomy structure.
Hope this helps. Marking this is fixed (for now) because I think the question has been answered. Feel free to reopen if you have further questions on this.
#12
Changing the title to better reflect the issue.
#13
Thanks, I appreciate your effort, MGN. This was my first Ubercart website. Next time I will use views to display my products. It's a better solution on many levels.
Cheers,
Danny
#14
Automatically closed -- issue fixed for 2 weeks with no activity.