This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with gallery images not appearing on translated products in a WooCommerce shop after using WPML's Media Translation tool.
Solution: 1. We identified that the custom field for the gallery was set to 'Do not translate'. 2. We changed the setting to 'Copy' under WPML > Settings > Custom Fields Translation. 3. We then resaved the product in the default language, which synced the images correctly. 4. For the remaining products, the client needs to resave them using the bulk action in the default language.
I'm trying to translate a WC shop with around 5k products, dozens of attributes, and around 30k images (mostly thanks to product galleries).
I have three languages activated, English (default), Russian, and Estonian. I noticed that IF I translate a product using Product translation, the translated version is missing gallery images (if I manually add them then they are displayed).
I tried to run WPML > Settings > Media Translation and hit Start with all of the options selected. It ran through 27k images and said that everything was done. However, the galleries didn't appear on translated products.
For example,
English version: hidden link
and Russian: hidden link
Also, here's an example of products that have NOT been translated or attempted to be translated by anyone:
EN: hidden link
ET: hidden link
However, gallery images can be seen on the translation page. See the screenshot attached.
1) How are you adding images to the gallery? Is this the default WooCommerce gallery or some additional fields or similar?
2) If it is the default one, please check if you have enabled the Duplicate media option from the edit product page. You will need to enable it from the default language edit product screen and re-save products.
I don't think that I'm using any other gallery than the default one. How can I check it?
I'm adding/managing products via CSV import files, so all images are first loaded to the media library and then mapped to the correct product in the file with the help of the links.
I can't go one by one for over 5k products to resave them. Is there any other way?
UPD. I have checked the translation pages and they have Duplicate media enabled.
thanks let me have a look, to see if there is an easy fix to get the images to show also on 2nd language.
Please make a full backup of your site (files and database) and confirm it in your next reply.
If possible please provide access to the staging website, not production.
Please note, that I might need to do some debugging procedures like enable/disable plugins, switch themes, change the default language of the user account, and/or access your website database to debug the issue furtherly.
I will share with you any changes or steps done in this process. Please let me know if you do not agree with the above or if I do not have your permission for any.
I would need to access both your site's wp-admin and FTP account, if possible.
I have enabled the private username and password fields in your next reply.
I suggest you create a new user, set it as an administrator and then add those credentials in the private fields mentioned.
You can safely add your information into these fields.
I am not sure why, but the custom field for gallery was changed and set to Do no translate, I have set it now to copy from WPML > Settings > Custom Fields Translation and then resaved the product in the default language.
Images are synced correctly.
- hidden link
You will need to do for rest of products, resave them. You can use bulk action in default language.
As for attributes, yes it is normal to show again total number that can be synced, not the one that needs to be synced.
If you have any other issue, please open a new ticket or let me know and I can do it for you, since we limit 1 issuer per ticket to keep the conversation clear and understandable.
I didn't find anything in the Custom Fields Translation that looks like images or a gallery, can you please clarify which option should I check in the future in case something similar occurs?