Issue with category hierarchy display in backend
-
Hello team,
I just imported a product sheet with a couple of hundreds of products into a website. The site has an extensive category hierarchy: a lot of categories with subcategories and also subcategories of the subcategories, e.g.:Supplements (parent category) > Vitamins & Minerals (subcategory of parent category) > Vitamins (subcategory of subcategory).
Many products are added into multiple categories and subcategories.
In the website itself, everything is working fine from what I can tell, HOWEVER:
- I noticed that in the WooCommerce > Categories area it shows there are 0 products in all parent categories and subcategories, whereas the product is listed only in the “bottom most” level of the hierarchy, i.e. in the sub-subcategory (the subcategory of a parent category subcategory), or following the above example, a product uploaded in this hierarchy:
Supplements (parent category) > Vitamins & Minerals (subcategory of parent category) > Vitamins (subcategory of subcategory)
shows only in the “Vitamins” subcategory of the “Vitamins & Minerals” subcategory. This means that the parent category and the subcategory (or “Supplements” and “Vitamins & Minerals” respectively) show there are NO matching products in this area. - If you open the All products view however and use the “Select category” dropdown and you select either “Supplements” or “Vitamins & Minerals”, it shows the product – hence, it works correctly.
- If you open the direct parent category (or even subcategory) link, again it shows the product – so this works well too.
- If you edit the product (or quick edit it), from the “Product category” options to the right it shows that the product is NOT added to the top levels of the hierarchy (parent and subcategory of the bottom most level of the hierarchy) – or, following the example above, it shows that the product X added to the subcategory “Vitamins” is NOT in the subcategory “Vitamins & Minerals”, which itself is a subcategory of the parent category “Supplements”.
Now this is not the biggest issue as everything is working well in the front end for customers, but it is a problem for my client as they manage an extensive store with hundreds of products. When managing such a large store, it’s confusing that product X is shown as NOT being in category X, although it is there and it’s also showing there in the frontend.
I tried deactivating all plug-ins on the site, running WP 6.5. and also uploaded the product sheet on a clean TasteWP installation. The issue can be reproduced, so it doesn’t seem like a site-specific issue or one resulting from a conflict. I’m using the latest WooCommerce version as well. I’m happy to provide anything else that may help debug this, including a step-by-step video and even access to a staging website.
Thank you in advance for your attention and assistance!
- I noticed that in the WooCommerce > Categories area it shows there are 0 products in all parent categories and subcategories, whereas the product is listed only in the “bottom most” level of the hierarchy, i.e. in the sub-subcategory (the subcategory of a parent category subcategory), or following the above example, a product uploaded in this hierarchy:
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Issue with category hierarchy display in backend’ is closed to new replies.