[Resolved] Translated categories are not shown in our widget
This thread is resolved. Here is a description of the problem and solution.
Problem:
Product Categories widget not showing all categories in translation with Flatsome theme when Order by is set to Category order.
Solution:
- Go to Product -> Categories
- Switch to the Secondary language from the language switcher in the top bar.
- Re-order the categories in the same way as categories are ordered in the original language by moving the categories.
Relevant Documentation:
N/A
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Translated categories are not shown in our widget. The widget rule is: Show every (translated) categorie, which contains (translated) products.
A few categories are shown, but many are missing. I can't find the problem myself. Hopefully you can help!
I will send screenshots in any minute
I noticed that you had "Hide empty categories" selected for the widget and the categories that are not shown in English translations are those that does not have products directly assigned to that category though subcategories to those categories have products assigned. So this somehow looks related.
I disabled the option but this does not seems to reflect in the front-end. Can you please clear all caches on the site and server completely then see if it helps?
If the issue persists, I will need your permission to copy the site to my local environment using a plugins like Duplicator ( https://wordpress.org/plugins/duplicator/ ) so that I can troubleshoot the issue further without affecting your live site.
Thank you for your reply.
Unfortunately, clearing the cache didn't help.
We've created a staging environment for you, so you don't need to copy the site to your local environment.
hidden link
You can use the known log in credentials.
Furthermore, please note that also some subcategories aren't shown. So (for me) it seems not truly related as how you described it above.
Please do not hesitate to contact us if you need anything else to clarify this issue.
I have an update here, so after further troubleshooting I find the issue is only there when you select the Order by to Category order. If you set it to Name the issue is resolved.
I troubleshoot the issue further and I can replicate it on a clean site with Flatsome theme so I have now escalated this issue to our 2'nd tier team to troubleshoot the further.
In the meantime I suggest you to set the Category order to Name so that the site is functional.
Thank you very much for your help!
We will, for now, order the list by name.
Could you inform us when the issue is resolved? Or can we find it somewhere public?
The issue has been escalated to our Compatibility team now and we will send you an update here once we have an update regarding the issue.
However it might require collaboration from the theme provider as well and might take some time. In the mean time I also recommend you to contact the Theme provider and report this issue to them as well to expedite the process.
We also have a workaround for you to be able to use the Order by to Category order in the Widget setting.
Can you please try the following and see if it works? I tried this on your Staging site and it seems to work.
- Go to Product -> Categories
- Switch to the Secondary language from the language switcher in the top bar.
- Re-order the categories in the same way as categories are ordered in the original language by moving the categories.
To make it easier you can choose larger number like 100 in the "Screen option" at the top right so that all categories are displayed in the same page and can be reordered easily.