Skip Navigation

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 3 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 10 months ago.

Assisted by: Prosenjit Barman.

Author Posts
April 6, 2023 at 5:51 am #13416137

calebW-2

I am trying to: Customize the WooCommerce Product Gallery Images for a translated Product

Link to a page where the issue can be seen: hidden link

I expected to see: A different gallery of images for the Spanish translation.

Instead, I got: All of the original English product gallery images.

Here is a video explaining/showing how this relates also to the "Products Media Synchronization" Setting in WooCommerce Multilingual > Settings: hidden link.

We typically had the checkbox checked for "Products Media Synchronization" but when we uncheck a single product's "Media attachments" checkboxes (i.e. "Duplicate uploaded media from original" and " Duplicate featured image from original"), it is still showing the English product gallery images. Can you tell what we might be doing wrong?

You'll see all these details in the video. Thank you so much! 🙂

April 6, 2023 at 4:36 pm #13421759

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thanks for reaching out to us. I will try my best to assist you in this matter.

First of all, thanks for nicely explaining everything. I checked the video and clearly understood the issue.

Upon reviewing the Spanish product you shared, I noticed that the Product gallery displays a Spanish image that is different from the one displayed for the English product. Kindly check this video (hidden link) for a better understanding.

Maybe due to the caches, changes are not appearing immediately. Would you please check by clearing the caches from your site and browser as well? As you're using the Object cache plugin, it is recommended to clear the caches from there and if possible, check by keeping that disabled for some time. It is always better to check on incognito mode if the changes are not appearing expectedly. I hope it will help.

I also would like to inform you that if you want to display different images in different languages, then it is better to use the WPML Media Translation tool. You just need to include the image that you want to display in other languages from this tool. The image will be placed accordingly.

More information about the Media translation plugin is available here- https://wpml.org/documentation/getting-started-guide/media-translation/

You can try this plugin to translate media content.

Let me know if you need further assistance in this matter. I will be happy to help you.

Best Regards,
Prosenjit

April 10, 2023 at 4:52 pm #13438849

calebW-2

Hi Prosenjit - thank you so much for taking the time too look this over and reply! I really appreciate it 🙂

Do you know, "Is it possible to have a different Product Image Gallery for a translated language if you didn't want to use the Media Translation Plugin and instead just wanted to uncheck the 'Media attachments' checkboxes (i.e. "Duplicate uploaded media from original" and "Duplicate featured image from original") as seen here: hidden link ?

If not, no worries! I was thinking that unchecking the Media attachments checkboxes would allow us to control the product images for that particular product on a one-off basis. Some of the products have 10 or more images in the gallery and so it takes a little while uploading them one-by-one via the WPML Media Translation workflow. For me, I was hoping to upload the gallery for the English version then upload all 10 Spanish gallery images in one fell swoop as well for the Spanish! But that might not be possible.

Also, as I know I mentioned before/already, there is that checkbox in the WooCommerce Multilingual Settings > Products Media Synchronization (hidden link) that may overwrite/ignore those checkboxes and always force the Products Media to sync, but if it's possible to say, "Yes, globally sync the Products Media except for products that uncheck the "Duplicate featured image from original" Media Attachment", that would be great. If not, that helps me understand better that I am attempting to do something that just isn't possible, ha.

And with that in mind, I will accept that I'll just have to use the WPML Media Translation workflow (one-by-one) to have the Spanish versions of the product Galleries which I am happy to do. 👍🏻

Sidenote: "Do you know where the images are stored that are uploaded via the WPML Media Translation plugin? Are they just stored in the translated languages media library?" I think that is the case but just wanted to make sure.

Thank you so much, Prosenjit!

April 11, 2023 at 12:39 pm #13445871

Prosenjit Barman
Supporter

Languages: English (English )

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

Hi There,
I hope you're doing well.

Thanks a lot for nicely explaining what you're looking for. It is clear to me!

1) You can surely upload different images for different translations without the Media Translation plugin. You just need to keep these options("Duplicate uploaded media to translations" and "Duplicate featured image to translations") disabled before attempting to translate the product. After completing the Translation, switch to other languages while you're on the product editor and then you can add the images for the translated product.

Please check this video for a better understanding: hidden link

I hope it will help.

2) I can understand your concern about the "Product Media Synchronization" setting. The option will only work if the "Duplicate uploaded media to translations" and "Duplicate featured image to translations" are enabled. I tested keeping it enabled but the images didn't sync.

But, the idea you've shared about excluding specific products from synchronization is really great. I will forward it to the Product development team for further checking and if they are able to find some valuable use cases, they will consider adding it in future updates. I hope you can understand.

3) Images uploaded through Media Translation are stored in the Media Library. You can access it by going to "Media > Library" and switching to the language from the Top Bar of the Admin.

I hope I'm able to address your questions. But, feel free to let me know if you need any further assistance. I will be glad to help you.

Best Regards,
Prosenjit