[Resolved] Woocommerce Product Gallery not syncing
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.
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?
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.
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.
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.
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.
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.