Skip Navigation

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.

If this solution does not seem relevant to your issue, please open a new support ticket with us.

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.

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Dražen 1 year, 6 months ago.

Assisted by: Dražen.

Author Posts
November 7, 2023 at 1:05 am #14742583

nazarS

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.

Any ideas on how to resolve this?

Screenshot 2023-11-07 at 03.03.24.png
November 7, 2023 at 6:52 am #14743337

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for contacting us.

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.

Let me know how ti goes.

Regards,
Drazen

14260251-Screenshot_1_222.jpg
November 7, 2023 at 10:56 am #14746315

nazarS

Hi,

thank you for the prompt reply.

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.

UPD2. It was enabled on both products.

Screenshot 2023-11-07 at 12.58.15.png
November 7, 2023 at 1:34 pm #14747601

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting it. Please share a bit more info, so I can understand better.

1) Can you please share where are you adding images in default language products?

2) How are you adding products via CSV files and mapping images, using some plugin for this or?

3) How are you translating products?

You can share some images or video if possible.

Thanks,
Drazen

November 7, 2023 at 1:43 pm #14747667

nazarS

1. I'm using the default functionality to Export/Import products (hidden link)

2. The same as in point 1. The images are going to the Images column and are comma-separated. The first image becomes the main one.

3. Woocommerce > WooCommerce Multilingual & Multicurrency > Products (tab)

Screenshot 2023-11-07 at 15.43.01.png
Screenshot 2023-11-07 at 15.42.17.png
November 8, 2023 at 7:30 am #14753139

Dražen
Supporter

Languages: English (English )

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

Hello,

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.

Thanks,
Drazen

November 9, 2023 at 7:33 am #14762505

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

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.

Regards,
Drazen

November 9, 2023 at 10:02 am #14764243

nazarS

Hi Drazen,

it works.

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?

November 9, 2023 at 12:26 pm #14766537

Dražen
Supporter

Languages: English (English )

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

Hello,

great, glad to hear that.

Once you are WPML > Settings > Custom Fields Translation, click "Shows system fields" and then search for a related field.

Image attached.

Regards,
Drazen

Screenshot_1.jpg
Screenshot_3.jpg