Discussions

List of categories on products page

I looked and didn't see any existing topics, although this seems like it would be a common question.

Basically, my client wants (using the CK demo as an example) this page:
http://demo.commerceguys.com/ck/products
... to be a list of categories instead of products.

I tried creating a view of the categories, but then I lose the facet api widgets on the left since I'm outside the product view, and they link to categories instead of into the product view, so again - even after clicked, no facet api widgets.

Right now I'm thinking the only way is to make a standard page with the categories and hard link to category search pages like:
http://demo.commerceguys.com/ck/products?f[0]=field_category%3A72

Just wondering if there's a better way. Going this route, the client will have to edit html on that page every time they add/edit/delete a category.

Posted: Dec 11, 2012

Comments

papirrin on December 12, 2012

Hi Dane,
I think the best you can do is to create a new view with a page display (that is the same way the page you linked to was made). You can even clone that view as the starting point for your custom view. I think that view is named "commerce_product" and you should be able to edit in admin/structure/views/view/commerce_products/edit