Skip Navigation

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

Problem:
You have a multilingual website and are using WP All Import to manage WooCommerce products in multiple languages. You've successfully imported images for products in the default language (German) but face issues when trying to assign these images, with their respective metadata, to the products in the second language (English). The metadata for the German images gets overwritten by the English texts during the import process.

Solution:
First, ensure that your CSV files include a column with the product title, as missing titles can cause the WP All Import Pro plugin to skip product imports. When setting up your import, in the WPML > Settings, check the option to duplicate images if your workflow requires it. For the English import, this setting will import the images and English texts and assign them to the English products. These settings will also duplicate the media to the Spanish products but with English texts. Subsequently, perform a second import for the Spanish version using the option "Use images currently in the Media Library" to update the existing Spanish media with the correct texts. Ensure that the WPML language options are set to connect this Spanish import to the original English import.

We recommend checking the related known issues and verifying the version of the permanent fix. Confirm that you have installed the latest versions of themes and plugins. If this solution does not resolve your issue or seems outdated, please open a new support ticket.

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 7 replies, has 1 voice.

Last updated by Nigel 1 week ago.

Assisted by: Osama Mersal.

Author Posts
February 20, 2025 at 8:29 pm #16731306

SandroL

Background of the issue:
I have a website with two language versions and have successfully imported images to WooCommerce products in the default language (German). I want to add the same images to the products of the second language (English) as well. I am using WP All Import.

Symptoms:
When I run the import with the English list, the (German) images are assigned to the English products, and the metadata (title, alt text) of the German images are overwritten by the English texts.

Questions:
How can I achieve a media translation and assign the translated media to the English products?

February 24, 2025 at 1:40 pm #16741316

SandroL

When can I expect your answer?

February 24, 2025 at 3:40 pm #16741987

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

1) Could you please share an example file of the file you uploaded so I can test it on a sandbox site?

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.

Best regards,
Osama

February 24, 2025 at 3:52 pm #16742037

SandroL

I don't have an example. Please anser just my question:
"How can I achieve a media translation and assign the translated media to the English products?"
The question is as simple as it is clear. Thank you!

February 24, 2025 at 4:20 pm #16742167

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

1) Thanks for your reply. I need to replicate the problem to be able to answer your question. It might be a compatibility issue that needs to be escalated.

2) Please share the debug information to help me know your site configuration and installed plugins. For example, I want to know which version of WPML you use and if you use the WPML Media translation plugin.

Best regards,
Osama

February 24, 2025 at 4:45 pm #16742271

SandroL

Please just tell me how I can upload the metadata of a media file in different languages with WP All Import.
This should be a common request with a standard answer.

February 24, 2025 at 4:52 pm #16742311

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Before using WP All Import, check your WPML settings:

1- Go to WPML > Settings > Media Translation.
2- Enable:
* Translate media library texts
* Duplicate existing media for translated content

After that, use the same image URL in your import file and add the title, alt, and caption.

After running the import, go to WPML-> WPML Export Import and run the import process.

Best regards,
Osama

February 26, 2025 at 7:07 pm #16753115

SandroL

Hello Osama.
Thank you for your reply, but it doesn'T work.
So, I created an admin account for your to have a closer look:

[Access Details Deleted]

What I did so far:
* I have created two imports - one in German, one in English (hidden link)
* I went to hidden link and have choosen "I’m exporting the content from a different website or system"
* I run both imports
* I went back to the WPML Export/Import page and got the same page "First, tell us how you’re going to create the content that you’ll be importing:"

This is a staging site so, feel free to do what ever you need to do.

I just want to repeat the goal:
I want to import images to WooCommerce products. The meta data should be in both languages. After import I expect the images are on hidden link with the translated flag and they are assigned to the German as well as the English product version.

Please let me know if you need further information.

Thanks, Sandro

February 26, 2025 at 8:40 pm #16753375

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please add the access details to the access to the private field. If you don't see the form below, please don't add your credentials, as they will be publicly exposed٫ (hidden link)

Best regards,
Osama

February 27, 2025 at 11:48 am #16755731

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I checked the import files you mentioned, and they don't contain the image details (Alt, Caption, title, etc).

I enabled the WP Export plugin and exported one product with the image fields in both languages. Please check this export file (Products Export - 2025 February 27 11:42). (hidden link)

Please edit this export file to update the image fields and import it. After that, please check the images in WPML-> Media.

Best regards,
Osama

February 27, 2025 at 1:57 pm #16756476

SandroL

Osama, did you check the Import configuration?
Title (of the image) and alt is the same field (the third in the import file). Please check the attachment. Caption is not needed.

Zwischenablage_02-27-2025_01.jpg
February 27, 2025 at 2:36 pm #16756724

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Yes, I checked your template, and you don't have WPML custom fields added. (Kindly check the attached screenshot)

Secondly, the import doesn't change anything because this is a product import, so the rows are skipped if you run the import without product fields.

Would you please run the file I sent you with the WPML custom fields and the added products data and check if the images will work correctly?

Best regards,
Osama

2025-02-27_16-31-53.png
February 28, 2025 at 3:41 pm #16761802

SandroL

Thank you, Osama. Unfortunately, it seems like you don’t fully understand the task and are trying to provide a solution that is not relevant to the situation. Let me try again to explain the task:

1.) I have existing products in WordPress/WooCommerce, but these products do not have any images assigned to them. So, exporting and importing makes no sense!
2.) The task is to assign images (which have already been uploaded to the folder "wp-content/uploads/wpallimport/files/") to the products. This works for one language as expected.
3.) The second task is to assign the same images to the second language (English). This also works as expected. However, the only issue is that the media metadata is not being translated into English. Instead of adding new metadata for the English images, the metadata for the German images is being updated during the import of the "English images."

So I'm wondering why it's too complicated to send me step-by-step instructions to achieve this exact goal.

I have completely reset WordPress.
Please create an import file as a sample and create the import template that works.
The image name corresponds to the SKU followed by the .jpg.
In your sample you can use a rendom text for title and alt text of the image.
Once again, the only task is to add the image to be imported and created in the media gallery to the product.
The metadata should be different in both languages.
You can use a product with the SKU FCL08, FCL0809 and FCL0812 as an example. The last two are variants of FCL08.

Can you please do that for me?
Without prior export but purely as an independent import to add new images to the existing products.

Thank you!

March 2, 2025 at 11:37 am #16765290

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. I consulted our 2nd tier support team and will update you as soon as I get their reply.

Best regards,
Osama

March 2, 2025 at 2:22 pm #16765686

SandroL

Thank you Osama. I can provide access to another instance where the 2nd tier support can do more tests. Please request them if needed.