Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues with product titles and text content appearing in Czech and needing retranslation after adding translations through XLIFF files. Additionally, there's a discrepancy in the display of product variation tables between the Czech (CZ) and German (DE) versions of a WooCommerce site. The client uses a plugin (PVT - Product Variation Table for WooCommerce) and a custom PHP script to display these tables.

Solution:
1. For the issue with the product variations not displaying correctly in the translated version, the client needs to ensure that the custom code or plugin fetches the translated variation names instead of just the slugs. We recommend using the WPML hook

wpml_object_id

to fetch the translated term names. More details can be found here: https://wpml.org/wpml-hook/wpml_object_id/

2. Since the PVT plugin is not listed as compatible with WPML, we suggest contacting the plugin author to discuss making the plugin compatible or consider using a WPML-compatible plugin like Product Table for WooCommerce.

If these solutions do not resolve your issue or seem 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 problem persists, please open a new support ticket with us for further assistance.

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

Last updated by Dražen 3 months ago.

Assisted by: Dražen.

Author Posts
October 23, 2025 at 11:40 am #17512284

lenkaS-2

1. there is now different Product title and text content is now in czech - does it mean, that it has to be translated again? I added translation trough xliff translated files.

2. under: Produkt-Parameter in DE version - there should be table with variations like it is in CZ version - there are 2 possible solution - or if you know about anything working that way?
hidden link
- first table is trough plugin PVT - Product Variation Table for WooCommerce
- second table is PHP script: hidden link

October 23, 2025 at 11:42 am #17512301

Dražen
Supporter

Languages: English (English )

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

Hello,

I am not sure how are you adding it, is only by plugin settings or there is some more code / shortcode involved here?

As for custom code part, unfortunately we can not support or help with custom coding, I advise checking with your developer, and if you need any advice / suggestion from us, we would be glad to help.

Regards,
Drazen

October 23, 2025 at 11:50 am #17512314

Dražen
Supporter

Languages: English (English )

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

Hello,

I checked the custom code also, right now your short code shows product variations using code that gives only the slug of the variation (e.g. blue, large), which is not translated by WPML.

To make it show the translated value, you need to convert the slug into the actual term name, and then get the translated term via WPML. For WPML you can use next hook https://wpml.org/wpml-hook/wpml_object_id/

Hope this helps.

Regards,
Drazen

October 24, 2025 at 8:18 am #17515220

lenkaS-2

Hi, the plugin has just shortcode, without any settings regarding to translations. So I hoped, it will work same for original language as for translations. This is preffered solution.

Custom shortode was meant to test it - in CZ it shows the same result as plugin.

October 24, 2025 at 8:32 am #17515287

Dražen
Supporter

Languages: English (English )

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

Hello,

most likely the issue is the same as with your custom code. Plugin author would need to adapt the code to also fetch translation variation on 2nd language.

Since I do not see this plugin in our compatible plugin list, I advise contacting them maybe they can help further or if they wish to collaborate we would be glad, and they are free to contact our compatibility team via GoGlobal program.

On the other hand, maybe you can check compatible plugins with WPML if they can use your purpose, for example:

- https://wpml.org/plugin/product-table-for-woocommerce-2/

Regards,
Drazen