2 replies [Last post]
sarmad's picture
Offline
Joined: 10/15/2008
Juice: 47
Was this information Helpful?

this is what iam doing to have a customized view for all product category.

1) i create a new view
2) mention fields of my choice
3) filter products by implementing taxonomy term for catalog

it do the trick for me. But every time i create a new product category, i have to come back to views and implement a new view for that. is views this much flexible so it recognizes the newly created category and implements the same view for previously created category?

littly_kitty's picture
Offline
Bug Finder
Joined: 01/20/2008
Juice: 155
Re: more flexibility in Views module? or am i missing something?

I struggled with this for a long time going as far to hack the View module, but it turns out that the solution is fiendishly simple.

1. Make sure your view has a "page View".
In the URL field of the page view box, enter "taxonomy/term/$arg" (even though the text of the URL Field tells you not to do this!!).

2. Under arguments enter the following:
Argument type: Taxonomy: Term ID
Default: Return page not find
Title: %1

That's it! Now all your taxonomy terms will display the custom view when clicked (and the view will only show the products that belong to that taxonomy term).

There's some more information about this handy technique in these threads:
http://www.ubercart.org/forum/support/4799/use_catalogue_view_more_one_c... (Ryan explains the technique)
http://www.ubercart.org/forum/support/5541/adding_additional_catalogs_wi... (more information)

sarmad's picture
Offline
Joined: 10/15/2008
Juice: 47
Re: Re: more flexibility in Views module? or am i missing someth

thanks for the reply.. let me provide some more details..

category vocabulary = catalog (included terms, "Category Type 1" & "Category Type 2")

I did add a new view in "views" exactly with the details you mentioned

When i access

mysite/catalog/1/category_type_1 OR
mysite/catalog/2/category_type_2

i dont see the change...