1

I have a product catalog that I would like to categorise into different categories (and subcategories). I would also like to have a grouping of the products by brands (which of course are orthogonal to the categories).

The ideal thing is that a customer can search for products belonging to a category, and/or to some brand.

Until now I have only managed to create the main categories. I created also subcategories, but they do not get displayed in the products page, i.e. having something like

  • CatA

    • Sub1
    • Sub2
  • CatB

If I try to show all the products in CatA only those belonging directly to it (and not to Sub1 or 2) get displayed.

Of course I do not have any idea on how to implements the brands.

EDIT:

I've tried some options in the mean time. Regarding the brands, I understood it is a completely different taxonomy. I created it, and associated it with the products and I added a new search facet in the All Products page. Probably I'll need some more advanced stuff in the future, but for now it is ok.

Instead, I'm still struggling with the sub-categories problem. I watched the following discussion & video: https://drupalcommerce.org/discussions/9017/product-catalog-terms-and-nodes They do something similar to what I need, but I need to put some modifications. I do not need multiple pages to navigate the categories. I simply want that if a user navigates a page like products/CatA all the products in Sub1 and Sub2 are shown.

1 Answer 1

0

Commerce Kickstart is a 'canned' solution, so you're limited by what's been 'hard-coded' already. This is fine, you just need to make some leaps of faith to use their product for your purposes.

You can't use the hierarchical structure of 'indented' sub categories of a Drupal taxonomy as an expected subcategory in Commerce Kickstart. It just doesn't understand it (yet). Unfortunately, you can only use a single level of category for each taxonomy category term. In Kickstart 2 - that's called the 'Collection' taxonomy. So don't add subcategories there and expect them to be shown. In some ways, this saves you some headaches.

You need to make a separate (again, single level of depth) taxonomy term for subcategory. You also need to set it to be a taxonomy of product classification (the checkbox thing in the Edit of the taxonomy).

With both separate, single level of depth, taxonomies, you then need to add these term reference selection boxes to your 'Product Variation' (and NOT Content Type).

You then need to put your brand, set up the same way as the other two, mentioned above, in your 'Content Type' (NOT product variation).

You then need to set up all of your Display Views, in both Content Type (CT) and Product Variations (PV). Look at the 'Tops' CT/PV set up to match that setup for guidance.

In this way, the 'All Products' view will work to allow you to filter by all terms of category, subcategory, and brand... or what ever other classification you can think up.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.