Skip Navigation

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

Problem:
The client is experiencing issues with syncing product gallery images across different languages on their WooCommerce site. The main language displays all images, but the translated languages do not. Additionally, categories and filters are missing on the shop page in English and Spanish.

Solution:
First, ensure that the correct options are selected in the WooCommerce product settings before translating the product. If the gallery images still do not appear in translations, follow these steps:
1. Navigate to "WPML > Settings" and scroll down to the "Media Translation" section.
2. Click the 'Start' button, ensuring the options shown in the provided screenshot are selected.
If the issue persists, check if the translation preference for the field storing the Gallery images is set to "Don't Translate". Change this setting to "Copy" and save the product without making any changes. This should resolve the issue.
For any products where the gallery still isn't visible, open the default product and save it without making any changes. Alternatively, use the "Quick Edit" option under the product name where the gallery is not showing, and save without modifying anything.

If these steps do not resolve your issue, or if the solution seems outdated or irrelevant 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. 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 8 replies, has 0 voices.

Last updated by jeffreyB-17 4 days, 14 hours ago.

Assisted by: Prosenjit Barman.

Author Posts
November 20, 2024 at 10:00 am #16423613

jeffreyB-17

Background of the issue:
I am trying to sync the product gallery images across different languages on my WooCommerce site. The main language has all images, but the translated languages do not. I attempted to use the 'Troubleshooting' feature to sync 'Product Gallery Images', which reduced the count from 68 to 0, but it didn't resolve the issue. Additionally, on the shop page in English (EN) and Spanish (ES), there are no categories or filters, unlike the main language site (NL). You can see the issue on this page: hidden link and hidden link.

Symptoms:
The product gallery images are not syncing correctly in translated languages. The main image appears, but gallery images do not. Also, categories and filters are missing on the shop page in EN and ES.

Questions:
How can I sync the product gallery images across all languages?
How can I fix the missing categories and filters on the shop page in EN and ES?

November 21, 2024 at 8:31 am #16427855

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thanks for contacting WPML Support.

I understand the issues you're experiencing. To keep things clear and organized, we address one issue per ticket. Since you've reported two separate issues, we'll focus on resolving the Gallery image issue in this ticket.

For the Filter issue, please create a new ticket, and one of our supporters will assist you promptly. Thank you for your cooperation!

Upon reviewing the Product page, I noticed that the Gallery image is being loaded through the theme's settings for the product gallery. However, if you've added the images to the Product Gallery field in WooCommerce, there shouldn't be any issues with the Gallery images in the translation.

Could you please review hidden link">this screenshot and confirm that the highlighted options are selected before translating the product? If not, please select the options, make a small change to the default product, and then update the translation. This step should help resolve the issue.

If the problem continues, try the following:

1. Navigate to "WPML > Settings" and scroll down to the "Media Translation" section.
2. Click the 'Start' button, ensuring the options shown in this hidden link">screenshot are selected.

Give this a try and let me know the results. If the issue persists, please confirm whether the gallery images were added using any other fields. I’ll review the setup and let you know what to do next.

Best regards,
Prosenjit

November 21, 2024 at 10:33 am #16428390

jeffreyB-17

I got a weird image in the link you've sent me. Please help me this time.

Scherm­afbeelding 2024-11-21 om 11.32.49 1.png
November 21, 2024 at 2:18 pm #16429555

jeffreyB-17

I did the media translation like you said and it started loading (about 1400 files), but after finishing the product gallery still isn't visible on EN and ES for every product. Some products are good (they already were) but others not.

This one for example not:

Good (NL): hidden link
Wrong (ES): hidden link
Wrong (EN): hidden link

Please keep me updated because after your last message I don't get any response of you.

November 22, 2024 at 4:08 am #16431756

Prosenjit Barman
Supporter

Languages: English (English )

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

Hi There!
Thank you for the update.

I shared an incorrect image link with you earlier. Apologies for any inconvenience this may have caused. Here is the correct screenshot link: hidden link.

Before adding translation to the product, you need to ensure that the marked options are selected.

Since you had already shared access to your site in another ticket, I quickly checked and identified the issue. The problem occurred because the translation preference for the field storing the Gallery images was set to "Don't Translate".

I updated the setting for the field to "Copy"(screenshot: hidden link) and simply saved the product without making any changes. This resolved the issue. Please see hidden link">this screenshot from the Spanish product you shared in your last message.

I hope it helps. Feel free to let me know if you need further assistance or clarification in this matter. I'll be happy to help.

Best regards,
Prosenjit

November 22, 2024 at 6:19 am #16431875

jeffreyB-17

Thanks for the help but this didn't work for all products. Look at this one for example:

Good (NL): hidden link
Good (ES): hidden link
Wrong (EN): hidden link

Now the Spanish version has the image gallery but the English doesn't on this one. And there are more examples.

November 22, 2024 at 9:10 am #16432646

Prosenjit Barman
Supporter

Languages: English (English )

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

Hi!

Thank you for the update. Since I’ve updated the Custom Field translation preference, it’s necessary to update the default product to ensure the custom field data is copied to the translation. Simply open the default product and save it without making any changes—there’s no need to update the translation.

Alternatively, you can bulk select the products and update them without making any changes. You also have the option to click the "Quick Edit" link (Screenshot: hidden link) below the product name, where the gallery is not showing in the translation. Then, simply click the save button without modifying anything. The key is to save the default product in any way!

Please try and let me know how it goes. I'll be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

November 22, 2024 at 10:54 am #16433330

jeffreyB-17

Hey Prosenjit, that worked. Thanks. Is there anything I need to do for next time so this doesn't happen?

November 25, 2024 at 4:48 am #16437806

Prosenjit Barman
Supporter

Languages: English (English )

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

Hi There!
I hope you're doing well. Sorry for the delay in responding due to the weekend.

I'm glad to hear that the solution worked! For the previous product, simply saving it in the default language is all that's required. As for the new product, no further action is needed. Just create the product, translate it, and the gallery images will be copied to the translation automatically.

Feel free to reach out if you need further assistance in this matter. I'll be happy to help.

Best regards,
Prosenjit

November 25, 2024 at 9:59 am #16438729

jeffreyB-17

Thanks!