Skip Navigation

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.

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by rutgerv-8 1 year, 8 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
May 11, 2023 at 9:19 am

rutgerv-8

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

May 11, 2023 at 9:59 am
May 11, 2023 at 12:59 pm #13630565

Subash Chandra Poudel

Hi there,

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.

Regards,
Subash

May 12, 2023 at 11:21 am #13636545

rutgerv-8

Hi Subash,

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.

Thank you and good luck!

Janneke

May 13, 2023 at 2:40 pm #13641167

Subash Chandra Poudel

Hi Janneke,

Thank you for the updates and your efforts in setting up the staging site.

I am troubleshooting the issue further, I wills end you an update here as soon as I have an update or a result.

Regards,
Subash

May 15, 2023 at 12:44 pm #13648109

Subash Chandra Poudel

Hi there,

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.

Rehgards,
Subash

May 16, 2023 at 7:00 am #13652411

rutgerv-8

Hi Subash,

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?

Regards,
Janneke

May 16, 2023 at 12:51 pm #13656623

Subash Chandra Poudel

Hi Janneke,

Sure, please use order the list by name for now.

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.

Regards,
Subash

May 19, 2023 at 6:50 am #13676063

Subash Chandra Poudel

Hi Janneke,

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.

Regards,
Subash

May 22, 2023 at 12:52 pm #13690101

rutgerv-8

This workaround is a good solution for us. Thank you for your support!