Background of the issue:
I am trying to view all my English (sub) categories in the WooCommerce admin, but mostly they are not visible. Link to a page where the issue can be seen: hidden link
Symptoms:
I expected to see 67 (sub) categories. Instead, I got 6 (sub) categories.
Questions:
Why are the English translated (sub) categories not all visible?
How can I make all English (sub) categories visible in WooCommerce admin?
Your written description of the problem is inconsistent with the screenshot you shared. In the screenshot, you show the terms of the product categories in German rather than English. I can tell it by the black Deutch (45) option. What is selected is in black.
Did you import those categories' terms from another source to this website?
Please answer the above question, and if you need further help, please give me access to your site. I'm enabling a private message for the following reply. Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
I can see the problem on your site.
Please try the following troubleshooting options.
1. Backup your site's DB in case something goes wrong.
2. Go to WooCommerce -> WooCommerce Multilingual & Multicurrency -> Settings -> Troubleshooting (link). This is the direct link. hidden link
3. Select the following two options and press the Start button.
- Sync products categories (display type, thumbnail): 66 left
- Sync removed product meta from original products to translations 2571 left
Please see the attached screenshot.
4. Check if that helped.
5. If it does not help, go to WPML -> Support -> Troubleshooting (link). This is the direct link. hidden link
6. Once on the troubleshooting screen, press the following buttons and check if it helps. Press each button at a time and wait for the process to complete.
- 'Clear language information and repopulate languages' button (if it is showing)
- 'Synchronize posts taxonomies' for 'Products'
- 'Clear the cache in WPML'
- 'Remove ghost entries from the translation tables'
- 'Fix element_type collation'
- 'Fix WPML tables collation'
- 'Set language information'
- 'Reset languages' Press this button only if you didn't add a custom language!
- 'Fix terms count'
- 'Fix post type assignment for translations'
*** Please make a backup of your database before using this.***
Thanks for the reply. I followed all the steps and it seem that the english category is now visible in the frontend.
However, the language swith in the admin does still not work properly.
hidden link
Also on the category section of Woocommerce, when I click on German it shows only the main german categories, but not all of them. In the screenshot you also see that English is still selected. Strange.
hidden link
When I click on all languages I can view all the categories, but it looks like 'english' is still selected:
Please proceed with the following. (It is recommended that you try the following on a staging site rather than on your live site.)
We suspect a collision with the theme or another plugin might cause this problem. If possible, get your site into a minimum environment, switching to a default WordPress theme like TwentyTwenty-Four and having no plugins activated except WPML.
First, you must check if the problem persists when just the theme is switched to TwentyTwenty-Four (for example). If it persists, deactivate all plugins except WPML and its add-ons and WooCommerce without any extensions. Then, please check if the problem persists. If it does not persist, start by activating the plugins individually and checking when the issue comes back, then report to me which plugin was the culprit.
**** Important! Please make a full site backup (files and DB) before you proceed with those steps****
*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***