Many people have a problem with "native" Ubercart menu. Since standart Ubercart menu is not "normal" drupal-menu, it can not be used with others modules like Nice Menu etc

Also standart Ubercart catalog provides its own structure - catalog/term_ID, taxonomy/term/id not supported.

So, the question is:

May I use Taxonomy Menu as alternative menu for Ubercart pages? I need to keep standart Ubercart structure like catalog/term_Id, dont want to use taxonomy/terd/id, so menu items should support this format.

I've tried to use "Taxonomy Menu Vocabulary Path" submodule which allow to prepend custom text for URL per vocabulary ("catalog" in may case), but had no success - all my menu items linked as "catalog/name_of_term"

I would appreciate help

Comments

volocuga’s picture

Status: Active » Closed (fixed)

The solution was pretty simple

I used both Taxonomy menu and Taxonomy Menu Custom Path (which is a submodule of Taxonomy Menu) modules

On vocabulary settings page:
1) Menu path type -> custom path
2) Base path for custom path -> catalog

That's all. Now I have 'normal' Drupal menu. Cool!

shotokai’s picture

In my experience this does not work if you have nested categories. Using 'custom path' in taxonomy menu will result in a single term following the catalog/ path.

TribalMan’s picture

How would I implement this when I am using different depths in my catalog, i.e.

catalog
-categories
--food
--clothes
-brands
--BrandA
--BrandB

It generates links, but the parent or subcategory is not in the link so I have been using menu editor to "Power Edit" this into submission.
Tax Menu is currently generating
/catalog/food
instead of
/catalog/categories/food

or
/catalog/BrandA
instead of
/catalog/brands/BrandA

amjad1233’s picture

G'day Mate,

I have one solution for your problem I am not sure if it will help you.

The following code will give you the list of menu items.

I am using a module call Global Taxonomy Redirect for all taxonomy to redirect to "catalog/[tid]" rather then "term/[tid]"

$url=explode("/",$_SERVER['REQUEST_URI']);
				//While in catalog it will find out whats the url which could be "catalog/23" etc...

				$term = taxonomy_get_term($url[2]);
				//From exploded array getting the taxonomy term id 

				$children = taxonomy_get_children($term->tid);
				//Gettin all children to creat list

				if(!empty($children))
				{
					//I am creating here a list for menu 
					$list = "<ul>";
					foreach($children as $child)
					{

						//Optionaly you can use $base or $path = "catalog/".$child->tid;
						$list.='<li class="child-catalog"><a href="'.$child->tid.'">'.$child->name."</li>";
						
					}
					$list.="</ul>";
					echo $list;
				}
1800collect’s picture

Version: 6.x-2.9 » 7.x-1.2

Are you putting this code within Global Taxonomy Redirect? I am guessing this is one of the supporting modules under redirect.

tzin111@gmail.com’s picture

hi guys,
i also tried to figure it out.
i used the vocab path and make it work until the end level.
the problem is that the last level is not show all the parents in the catalog and it broke the chain...

what i did at the end is just build and design a new view for my categories.
after spend 1 day in tring to solve this matter i think its better with a view.

if somebody have a cool solution please share with us :)