[Resolved] One custom tab is missed on translated products pages
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:
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.
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?
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.
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.
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.
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.
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:
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.