WooCommerce doesn’t display product-categories [closed]
-
At the moment I’m working on two wordpress websites which are owned by a friend of mine. Both of those websites use woocommerce as a shop. Both websites display the same content and products. The only difference is that they are setup in different languages (german and english). Both shops use main-categories and sub-categories like this:
Main category 1 — Sub-category 1 in main 1 — Sub-category 2 in main 1
Main category 2 — Sub-category 1 in main 2 — Sub-category 2 in main 2
Main category 3 — Sub-category 1 in main 3 — Sub-category 2 in main 3
The sub-categories contain the different products. The main categories are setup to only display the sub-categories while the sub-categories are setup to only show the products.Yesterday I realized that on the german website that none of the main-categories and sub-categories are displayed anymore. The products are still there and can be viewed through the direct link but the shop navigation itself doesn’t show anything. After several hours of trying to find the reason for this I found out that this is happening because all the products are setup to only be a part of the sub-categories and not the main-categories. When I change the settings of the products that they also belong to the main-category then everything works like it used to.
The most surprising thing about all of this is that the english website works just fine and doesn’t have this issue at all. Both websites use the same template and the same plugins. The versions of wordpress, the template and all the plugins are also the same on both sites. There are however a few code-snippets that are used only on the german website. I deactivated all of them yesterday and the issue was still there which leads me to believe that those can’t be the reason for this issue.
I would love to post some code along with this question, but I have no idea which code to display here. Does anybody have an idea about how I could try to figure out this issue? I really don’t know what else to try. Any help would be appreciated. Thanks in advance.
P.S.: I tried disabling all the plugins. If I do that this error doesn’t occurr anymore. I then activated all plugins again and tried to disable one by one. This however didn’t get me to a solution either.
- The topic ‘WooCommerce doesn’t display product-categories [closed]’ is closed to new replies.