Skip Navigation

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

Problem:

You are experiencing an issue where the 'Scientific facts' tab is missing for the LV language on all product pages, despite being translated using the Product Tabs for WooCommerce (Free) plugin.

Solution:

This problem arises due to a compatibility conflict with the Product Tabs for WooCommerce plugin, which is not officially compatible with WPML. We resolved this on a staging site by modifying the code. You can apply the following change in the woocommerce-product-tabs/src/Product_Tabs.php file at line 90:

$key = apply_filters( 'wpml_object_id', $key, 'woo_product_tab' );

Please verify if this resolves the issue on your site.

If this solution does not apply to your case, or if it 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 the issue persists, please open a new support ticket.

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 9 replies, has 0 voices.

Last updated by Bigul 6 days, 14 hours ago.

Assisted by: Bigul.

Author Posts
May 27, 2025 at 4:44 pm

kasparsV

Background of the issue:
I added new custom tabs for products using the Product Tabs for WooCommerce (Free) plugin. All new tabs are translated. The issue is with the 'Scientific facts' tab, which is missing for the LV language. When I open the 'Edit translation' link, I see both the original and translated texts for this tab. This problem occurs on all products. Here is a link to a page where the issue can be seen: hidden link

Symptoms:
The 'Scientific facts' tab is missing for the LV language on all product pages, despite being translated.

Questions:
Why is the 'Scientific facts' tab missing for the LV language?
How can I ensure all tabs are displayed correctly on translated product pages?

May 27, 2025 at 6:46 pm
May 29, 2025 at 2:48 pm #17088836

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

The issue persists after the primary troubleshooting steps. So I am consulting with our team for an expert opinion. We will get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

June 2, 2025 at 8:00 am #17096735

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

As mentioned earlier, this issue is due to a compatibility conflict with the Product Tabs for WooCommerce plugin, which is currently not included in our list of officially compatible plugins.

That said, we were able to achieve the expected results on your staging site by adding the following code in the *woocommerce-product-tabs/src/Product_Tabs.php* file at line 90.

$key = apply_filters( 'wpml_object_id', $key, 'woo_product_tab' );

Please check the site now and let us know your feedback. You can also refer to the attached images for more details:

hidden link

--
Thanks!

Bigul

2025-06-02_13h24_45.png
2025-06-02_13h24_22.png
June 3, 2025 at 9:18 am #17101071
kasparsV

Hello, thank you for the solution. It works.

Please help me with one more thing I cant translate.
On the sidebar we have reviews. All reviews was translated but there are no translations.

We use it on shop and product page.

Could you check?

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

https://wpml.org/forums/topic/reviews-was-translated-but-there-are-no-translations/

Screenshot_1.jpg
June 3, 2025 at 6:33 pm #17103776

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. I have opened a new ticket regarding the Product Reviews translation issue. As per our support policy, we handle one issue per ticket. This helps us provide more efficient assistance and keep the discussion focused.

I will follow up on the new ticket shortly. Please wait.

--
Thanks!

Bigul

June 10, 2025 at 8:03 am #17120666

kasparsV

Hello, unfortunately we have a problem with this again. There are no translation for one of the tabs. It was but its missed now.

You can check it with this product - hidden link

June 10, 2025 at 8:30 am #17120768

kasparsV

Its the same for all of the products.

June 10, 2025 at 2:03 pm #17122339

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. Could you please clarify whether the entire Custom Tab is missing for the Latvian Products or just its content? It would be helpful if you could share a couple of screenshots so we can better understand the issue.

--
Thanks!

Bigul

June 10, 2025 at 3:24 pm #17122606
kasparsV

Custom tab is present for both languages. Content translation is missed for LV.
It was there but now its missed.

I checked the *woocommerce-product-tabs/src/Product_Tabs.php* file at line 90 and there is the code: $key = apply_filters( 'wpml_object_id', $key, 'woo_product_tab' );

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

https://wpml.org/forums/topic/tab-content-translation-is-missed-for-lv/

Screenshot_3.jpg
Screenshot_2.jpg
June 10, 2025 at 6:03 pm #17123273

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. It appears to be a different issue, so I have created a new ticket for easier tracking. I will get back to you shortly on the new ticket. Please wait.

--
Thanks!

Bigul