Skip Navigation

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

Problem:
The client is experiencing issues with variation thumbnails not displaying correctly on the Croatian (HR) version of their WordPress site, despite working fine on the original Slovenian (SI) version. The client is using the Product Gallery Slider for WooCommerce plugin and has been manually adding each variation for the Croatian language.
Solution:
We recommend the following steps to ensure that variation images are correctly copied to the translated versions of the products:
1. Navigate to WPML > Settings and locate the Custom Field Translation section.
2. Click on the Show system fields link.
3. Search for the

wavi_value

field in the Custom Field Translation section.
4. If found, set the translation preference for this field to 'Copy'.
5. Save the changes and clear the cache on both your site and browser.
6. Make a minor edit to the product title of a default product and save the changes.
7. Update the translation and check if the issue is resolved.

If this solution does not resolve the issue or seems irrelevant due to updates or different circumstances, 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 4 replies, has 1 voice.

Last updated by ziga pipan 1 month ago.

Assisted by: Prosenjit Barman.

Author Posts
November 18, 2024 at 11:00 am #16414298

ziga pipan

Background of the issue:
I am trying to display variation thumbnails correctly on my WordPress site using WPML. The original Slovenian (SI) version of the site is displaying thumbnails correctly, but the translated Croatian (HR) version is not.

Original (SI) version is ok
hidden link
hidden link

Translated (HR) version is not showing right thumbnails
hidden link
hidden link

Symptoms:
Variation thumbnails are not showing correctly on the translated Croatian (HR) version of the site.

Questions:
Why are the variation thumbnails not showing correctly on the translated Croatian (HR) version of the site?

November 18, 2024 at 12:04 pm #16414666

Laura
Supporter

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Hi,

thanks for contacting us.

I can actually see the correct thumbnails on the Croatian page (see screenshot).
If you still can't see them please try to clear your browser's cache.

Screenshot 2024-11-18 130426.png
November 18, 2024 at 12:08 pm #16414733

ziga pipan

Yes, cause I'm manually changing it one by one for each product.

I'm using Product Gallery Slider for WooCommerce which seems to be not copying images over to translation.

Now I'm manually adding each variation for croatian language. Is there a way to make this not manual cause I have lots more of languages to come?

November 19, 2024 at 7:42 am #16417850

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There.

Thank you for the update! I've taken over this ticket and will try my best to assist you in this matter.

Since you mentioned that the variation images are being added using the "Product Gallery Slider for WooCommerce" plugin, I installed the plugin to investigate how it stores image information. Upon review, I found that the image IDs are stored in an array within a field named `wavi_value`. Setting the translation preference for this field to "Copy" should ensure that the image IDs are copied to the translated product as well.

Please try the following steps to see if they help resolve the issue:

1. Go to "WPML > Settings" and scroll to the "Custom Field Translation" section.
2. Click on the "Show system fields" link.
3. Once the page refreshes, enter wavi_value in the search box within the Custom Field Translation section.
4. If the field appears in the search results, set its translation preference to 'Copy'.
5. Save the changes and clear the cache from both your site and browser.
6. After that, open a default product and make a small change to the product title.
7. Save the changes and update the translation.

I hope the steps above will help in solving the issue. Feel free to let me know if you need further assistance or clarification. I'll be happy to assist.

Best regards,
Prosenjit

November 19, 2024 at 10:31 am #16418787

ziga pipan

many thanks, works flawlessly!

November 19, 2024 at 10:32 am #16418820

ziga pipan

great help, thank you!