Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is trying to get the product attribute filter to appear on category pages for translated languages in WooCommerce, but the attribute fields are not showing up.
Solution:
1. We have spotted the client had set the Product Brand (pa_brand) as 'Translatable - use translation if available or fallback to default language' in WPML -> Settings -> Post Types Translation.
2. We noticed that the Brand terms in Chinese had no products assigned, which is a common issue when products and categories are set as 'Appear as translated' and only part of the content is translated.
3. We recommended using the 'duplicate' feature instead of the 'fallback' option. Detailed steps can be found here: https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#duplicating-content.
4. We duplicated one product of the Brand 'Lee Kum Kee' to Chinese and turned off the option "Use the product attributes lookup table for catalog filtering" in WooCommerce -> Settings -> Products -> Advanced.
5. Finally, we suggested translating the widget texts through WPML -> String Translation module, which may require deleting and recreating the previous strings and widgets.

If this solution doesn't look relevant, please open a new support ticket at WPML support forum.

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.

This topic contains 10 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 3 months ago.

Assisted by: Mateus Getulio.

Author Posts
November 12, 2023 at 8:48 pm #14784901

simonC-58

Hi. I'm trying to get the product attribute filter to appears on my category pages for my translated languages.

I've tried the solution here:
https://wpml.org/forums/topic/woocommerce-product-filtering/

For example:
English default language
hidden link

Translated language
hidden link

The attribute fields themselves do not need to be translated, simply the titles.

November 13, 2023 at 8:41 pm #14792235

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your contact!

Please make sure to test both workarounds in the errata page: https://wpml.org/errata/woocommerce-6-3-the-new-product-attributes-lookup-table-is-not-populated-for-products-in-secondary-language/

If the problem remains, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

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 make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

November 17, 2023 at 8:13 pm #14866085

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thank you for providing the credentials.

It seems that you can translate the widget titles using our WPML -> String Translation, please check it: hidden link

I have translated 'price' from English to 'price (Chinese)', and it is displaying fine: hidden link. I also had to clear the cache with LiteSpeed (please do the same if the translations are not appearing for you).

May I kindly ask you to search for the other texts and try to translate them? Thank you!

November 20, 2023 at 8:25 pm #14880735

simonC-58

Hello. I have tested your string translation on other category pages and it doesn't appear.
E.g. - hidden link
or
hidden link

I disabled the Litespeed plugin and purged server cache with no success.

Please advise.

November 21, 2023 at 1:03 pm #14886841

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your reply.

Just to make sure, do we have your authorization to make a copy of the website and migrate it into another server? In order to perform more complex tests without compromising the live production.

Please keep us posted about it. Thank you.

November 21, 2023 at 9:14 pm #14891263

simonC-58

Hi, yes this is fine. Please proceed.

November 22, 2023 at 2:10 pm #14898927

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thank you for the confirmation.

As a possible solution, we have tested to delete the filter widgets, re-add them and translate from the WPML -> String Translation module.

It seems to work in our copy version, although most probably you will need to use new widgets, and not the legacy ones anymore. Would it be an alternative for you?

Please let us know, and thanks in advance.

November 26, 2023 at 4:26 pm #14925387

simonC-58

Hi Mateus

I tried this but it didn't work. Can I clarify what you mean.
I simply remove and re-add the filter widgets then use string translation and it should work?
Or are you saying it doesn't work with legacy widgets?

November 27, 2023 at 4:26 pm #14932645

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello again,

Legacy widgets should work as well, it was just that you were using the Blocks view.

Regardless, I have double-checked the problem, but so far I haven't been able to find a fix. I asked my colleagues to take a look to see if there's anything I'm missing.

I'll come back here as soon as one of them answers me (which shouldn't take long). Thank you in advance for your patience!

Regards,
Mateus.

November 28, 2023 at 3:32 pm #14941493

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your patience.

For your information, we're still investigating this issue and as soon as possible we'll provide you with more updates.

Please stay tuned. Thank you.

November 29, 2023 at 11:52 am #14950129

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your patience.

You have set the Product Brand (pa_brand) as 'Translatable', to use translation if available or fallback to the default language in WPML -> Settings -> Post Types Translation. Now, if you check the Brand terms in Chinese, you will see that there are no products assigned: hidden link

This behavior is recurrent when we set products and categories as 'Appear as translated' and only translate a part of the equation. In this case, you translated the Brand categories but not the products.

Instead of using the 'fallback' option, it is needed to use the 'duplicate' feature: https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#duplicating-content

You can check that I have duplicated to Chinese one product of the Brand 'Lee Kum Kee': hidden link, and now the filter widget show in the Chinese shop: hidden link.

Additionally, I had to turn off the option "Use the product attributes lookup table for catalog filtering. " in WC -> Settings -> Products -> Advanced.

After this, we should be able to translate the widget texts through the WPML -> String Translation module (we might need to delete and recreate the previous strings and widgets).

Could you please review it and let us know if it is fine now? Thank you.