Skip Navigation

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

Problem:
The client was experiencing issues with sidebar filter translations not appearing on the category page, despite translations being added in the template. Additionally, after translating WooCommerce categories and ACF content, the translated categories in English were missing products present in the original category, displaying 'no product is present for this category' on the frontend.
Solution:
We reviewed the settings and found that in WPML -> Settings -> Post Types Translation, 'Products (product)' was set to 'Translatable - use translation if available or fallback to default language', and the same setting was applied for 'Product categories (product_cat)'. However, the categories were translated from Arabic to English in WooCommerce -> WooCommerce Multilingual & Multicurrency -> Categories, which caused the filtering issue. To resolve this, we duplicated some products in WPML -> Translation Management, which made the sidebar display the filtering options correctly. We advised the client to duplicate all other products similarly and apply the same changes to other sites. Additionally, we noted that if the product titles and content in Arabic are changed to Arabic in the future, it is crucial to first disconnect the duplicated English products to avoid displaying English products in Arabic.

For more detailed guidance, please refer to our documentation on displaying untranslated products in secondary languages and how to convert a translation into a duplicate.

If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, 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 15 replies, has 0 voices.

Last updated by Itamar 3 months ago.

Assisted by: Itamar.

Author Posts
November 21, 2024 at 8:32 am #16427861

manojP

Hi,

I am facing certain issues regarding the translation

Sites :

hidden link - netherlands
hidden link - Saudi Arabia
hidden link - france
hidden link - Qatar

Where to Check : At the Header, Shop > perfumes / perfumes for men/ perfumes for women/ niche perfumes

Credentials : Same for all websites. as been shared with you in a private message earlier.

1. In the category page, the sidebar filter translation is not visible
I have added the translation inside the template, but it is not showing in the frontend
Sidebar template : Enzian Shop Sidebar

2. Also I had translated the woocommerce categories and the ACF content present in them, but after translation, the translated categories in english is missing the products that are present in the original category.
So in the frontend, 'no product is present for this category' is shown.

Check the attached image for more details.
Link : hidden link

Please do the changes in all the sites and also share the procedure you followed to resolve the above issue..

Thanks

November 21, 2024 at 1:14 pm #16429164

manojP

Hi,

Awaiting For your reply

Thanks

November 24, 2024 at 5:08 pm #16437325

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

You need to correct things to make it work as you expect.

You wrote: "I have added the translation inside the template, but it is not showing in the frontend
Sidebar template : Enzian Shop Sidebar"

I searched for 'Enzian Shop Sidebar' in Tempaltes, but I can see that it is not translated. Please see the attached screenshot, Enzian-Shop-Sidebar.jpg.

Please proceed with translating the template. I recommend you review our Elementorguide here.

https://wpml.org/documentation/plugins-compatibility/elementor/#translating-elementor-templates

You also wrote: "...in the frontend, 'no product is present for this category' is shown."

However, when I go to WooCommerce -> WooCommerce Multilingual & Multicurrency, I see that none of the products are translated. Please see the attached screenshot no-products-trans.jpg.

You must translate the products to fix this issue. Please review our guide on working with WooCommerce.

https://wpml.org/documentation/related-projects/woocommerce-multilingual/#products

Regards,
Itamar.

Enzian-Shop-Sidebar.jpg
no-products-trans.jpg
November 25, 2024 at 6:31 am #16437864

manojP

Hi,

1. In SA and QATAR, I had not done anything regarding the product translation, then how it has automatically translated there and is showing at the frontend ?

2. Please check the Qatar website Shop Sidebar Template. There I have added the translation. But still it is not showing in the frontend.

please check the attached screenshot.

qa sidebar frontend (1).png
qa shop sidebar translation.png
November 25, 2024 at 1:47 pm #16440076

manojP

Hi,

Awaiting for your Reply.

Thanks

November 26, 2024 at 6:01 am #16442620

manojP

Hi,

Awaiting for your Reply.

Thanks

November 26, 2024 at 10:00 am #16443772

manojP

Hi,

Awaiting for your Reply. Please reply as soon as possible.

Thanks

November 26, 2024 at 4:36 pm #16446176

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I checked the Qatar site and fixed this problem. The problem was that in WPML -> Settings -> Post Types Translation, you set 'Products (product)' to 'Translatable
use translation if available or fallback to default language' and for Taxonomy Translation, you set the same also for 'Product categories (product_cat)'. Please see the attached screenshots: cpt-product-trans.jpg and tt-trans.jpg. However, in WooCommerce -> WooCommerce Multilingual & Multicurrency -> Categories, you translated the categories from Arabic to English. Please see the attached screenshot ar-cat-trans.jpg. In such cases, the filtering can not work. This is why nothing showed on the sidebar. You can read more about this in our guides here.

https://wpml.org/documentation/related-projects/woocommerce-multilingual/displaying-untranslated-products-in-secondary-languages/#displaying-content-in-the-default-language-for-products

https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/

I duplicated some of your products in WPML -> Translation Management. Please see the attached screenshot, dup-products.jpg. The sidebar now shows the filtering options. Please see the attached screenshot, sidebar-ok.jpg. You can duplicate all the other products on your site and also do the same on the other sites.

A note from my side: Your site's default language is Arabic, and the second language is English. However, the product title and content are in English, even in Arabic. If you change the title and content of the Arabic product to Arabic in the future, you must first disconnect the duplicated English products. Otherwise, the English products will be shown in Arabic. You can also read about it in the link I shared above.

https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#how-to-convert-a-translation-into-a-duplicate

Can you please confirm that this issue is solved now?

Thanks,
Itamar.

cpt-product-trans.jpg
tt-trans.jpg
ar-cat-trans.jpg
dup-products.jpg
sidebar-ok.jpg
November 27, 2024 at 11:09 am #16448769

manojP

Hi,

Can I Translate all the products at once or do I need to do it manually do it for all the products ?

Thanks

November 27, 2024 at 12:09 pm #16448964

manojP

Hi,

Checked the QA site and Compared the settings you mentioned. But I have Few Queries

1. In QA only 21 products are in English, but in frontend in each category in english, the exact number of products are shown as in the actual main category.

Images : products qa frontend.png , products qa.png

whereas in SA I did the same settings and duplicated 3 products and changed their main language to ENG instead of Arabic, but in the front end it is showing only 3 products

Images : SA product backend.png, SA product frontend.png, Taxonomies Translation.png , Post Types Translation.png

Please specify how to do this? Please mention the step to achieve this.

2. I want to duplicate / translate the product at bulk. how to do this?

Thanks

Post Types Translation.png
Taxonomies Translation.png
SA product backend.png
SA product frontend.png
Products QA.png
products qa frontend.png
November 27, 2024 at 2:48 pm #16450674

manojP

Hi,

Awaiting for your Reply. Please reply as soon as possible.

Thanks.

November 27, 2024 at 9:12 pm #16451722

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

To duplicate multiple products at once, go to WPML → Translation Management. Select the products, and under Translation options, choose Duplicate content.

https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#how-to-duplicate-pages-and-posts-in-bulk

Regards,
Itamar.

wpml-translation-management-dashboard-duplicate-content.png
November 28, 2024 at 12:27 pm #16454959

manojP

Hi,

Please check the given link below

Link :

hidden link

I am facing a issue with filter translation in these site.

Tried the method that you have suggested. But no avail.

Please Check and resolve this issue as soon as possible.

Thanks

November 28, 2024 at 8:04 pm #16456866

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I don't see any problem with the English translation here: hidden link.

For example, I select "Male" and get the correct products. Please see the attached screenshot.

If I missed something, please explain how to see the problem. Please also attach some screenshots.

Please note that my weekend is Friday-Saturday, and I'll be able to continue to check this issue and help you on Sunday.

Regards,
Itamar.

2024-11-28_22-01-10.jpg
November 30, 2024 at 7:15 am #16461561
manojP

Hi,

We have my site main language in France, But the product data is in English.

We had duplicated the products from French to English as mentioned by you previously so as to show the sidebar, which is working right now.

But the duplicated product native language is also showing as French.

We want to change the native language of these products to English and then add the French translation later on.

Is there a way to swap the native language of all these products to English in bulk, so that we ca add the French translation later on.

Please Check in this Link and do let me know the procedure for it.

Link : hidden link {Same Credentials}

New threads created by Itamar and linked to this one are listed below:

https://wpml.org/forums/topic/split-is-there-a-way-to-swap-the-native-language-of-all-these-products/