Skip to content Skip to sidebar

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

Problem:
The client reported an issue where the table displaying product variations was empty on the German version of a product page, despite having translated all attributes and product details.
Solution:
1. We verified the use of a shortcode

[varianty id="4658"]

to display product variations and inquired about its origin, whether it was custom code or from a third-party plugin.
2. We made adjustments to the default language settings, saved them, and then re-translated the content to 100%, which resolved the issue of the missing data in the second language.
3. We recommended setting products, variations, and each created attribute to translatable via WPML > Settings.
4. The client was advised to update to WCML 5.5.2.2, translate attributes through WPML > Taxonomy Translation, and update products in the default language.
5. Products should be sent for translation via WPML > Translation Dashboard, and XLIFFs exported, re-translated, and then uploaded.
6. It was noted that the same XLIFF exported for the current translation job should be used for re-import to ensure WPML recognizes it.

If this solution does not resolve your issue, or if it seems outdated or not applicable to your case, 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. Additionally, feel free to open a new support ticket at https://wpml.org/forums/ 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 13 replies, has 0 voices.

Last updated by Dražen 2 months ago.

Assisted by: Dražen.

Author Posts
October 23, 2025 at 6:58 am #17511000

lenkaS-2

I translated all attributes for this product:

hidden link

in CZ and in DE - there is the table:
Klasse 3, 4
Produkt MK
Produktcode 1 MK – HD – 3, MK – HD – 4
Produktcode MK – HD – 3, MK – HD – 4
Arbeitsbedingungen HD
Arten von Arbeiten ☗ – Bauwesen und Terraingestaltung, ⬤ – Handling und Landwirtschaft

it is the same as in CZ version of the product, but later in the page, there should be table of all variations of the product:
Produkt-Parameter
- and it is empty

can you look at it, if the variations are ok or what is the problem?

October 23, 2025 at 7:00 am #17511002

Dražen
Supporter

Languages: English (English )

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

Hello,

lets continue here.

I see you are using next shortcode to show this information:

[varianty id="4658"]

Can you please explain how is this shortcode created? Is this some custom code or 3rd party plugin? What does the ID number represent?

Regards,
Drazen

October 23, 2025 at 7:52 am #17511224

lenkaS-2

It is just PHP skript, that should show product variants according to ID of the product.

4658 is ID of the DE translation of product:
hidden link

October 23, 2025 at 8:22 am #17511351

Dražen
Supporter

Languages: English (English )

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

Hello,

I am trying to check further, but I see user Petr Jebavý is working on related products.

Let me know when it is okay to check and I will continue.

Regards,
Drazen

October 23, 2025 at 10:27 am #17511839

lenkaS-2

You can kick anyone out, it is just copy of actual dev site, so no harm done, if you take control of anything.

October 23, 2025 at 11:18 am #17512159

Dražen
Supporter

Languages: English (English )

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

Hello,

great, thanks. I did not want to take over work in progress.

I have made a small change to default language, saved and then re-translated 100% and it shows up fine. Probably related to previous translation settings, so not correct data was copied / created in 2nd language.

- hidden link

Please check.

Regards,
Drazen

October 23, 2025 at 11:28 am #17512219
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

New threads created by Dražen and linked to this one are listed below:

https://wpml.org/forums/topic/split-pvt-product-variation-table-for-woocommerce/

October 23, 2025 at 11:41 am #17512300

Dražen
Supporter

Languages: English (English )

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

Hello,

1) It is different because I "translated" it, I did not add correct translation there, it was only for test.

You can try also to re-translate via XLIFF one product and see if that works. Yes, you will probably need to retranslate as first time when you did settings where wrong, and correct variations could not be created for 2nd language.

2) Lets keep things clear and continue in new ticket, as it seems it is an issue with 3rd party plugin that I need to check on further.

- https://wpml.org/forums/topic/split-pvt-product-variation-table-for-woocommerce/

Regards,
Drazen

October 24, 2025 at 5:31 am #17514614

lenkaS-2

Thank you,
can you sumarize what should I do now to translate it correctly?
1. set attributes as translatable
2. translate all attributes
3. load the xliff again (or delete translations and then load the xliff?
Is it correct

October 24, 2025 at 6:12 am #17514779

Dražen
Supporter

Languages: English (English )

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

Hello,

sure, here is summary:

- Set Products, Variations and each created attribute to Translatable from WPML > Settings.
- Update WCML 5.5.2.2
- Translate attributes from WPML > Taxonomy translation
- Update product in default language / you can use bulk action from WP and just click in bulk more products UPDATE button without actually doing any change
- Send products for translation via WPML > Translation Dashboard
- Export XLIFFs / re-translate and then upload them

Regards,
Drazen

October 24, 2025 at 11:41 am #17516151

lenkaS-2

for the last step - can I just use the current translations - I mean I have files from translation agency which I used now. Does it need to be translated again, or will it work with already finished translation jobs?

October 24, 2025 at 12:11 pm #17516421

Dražen
Supporter

Languages: English (English )

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

Hello,

you would need to use same XLIFF that was exported / created for current translation job and import it, otherwise WPML will not recognize it.

If you are using some XLIFF edit / translation software and if you open new XLIFF it should already be populated with existing / old translation done before. You should not be necessary to re-translate all over again.

Otherwise, you can also manually adjust old XLIFF to match new one:

- https://wpml.org/faq/the-uploaded-xliff-file-doesnt-belong-to-this-system/

Let me know how it goes.

Regards,
Drazen

October 27, 2025 at 7:51 am #17520271

lenkaS-2

I resolved it with updated PHP script, which can read variations without price etc. I found out, that I do not have to retlanslate all product, which will be difficult for me. Because I just need to have the variations with parameters in the table, this is the best solution.

October 27, 2025 at 8:23 am #17520496

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

Sure, if this custom solution works for you, that is great to hear.

Feel free to contact us again if there is anything else we can do for you.

Regards,
Drazen