This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to import products in two languages (EN and DE) using the built-in importer. Initially, both language versions display correctly. However, after updating the EN product, the DE product attributes like size and color are no longer displayed in the webshop. Solution: We have identified that this behavior is expected due to the limitations in WPML's handling of attribute translations. In WPML, attribute names themselves cannot be translated, only their labels can be. These labels are what you see on the frontend, provided by the theme. Unfortunately, the attribute names included in the export CSV file are not translatable. If you're experiencing this issue, we recommend checking the known issues page and verifying that you have the latest versions of themes and plugins installed.
If this solution does not apply to your case, or if it seems outdated, please do not hesitate to open a new support ticket. We highly recommend visiting the WPML support forum for further assistance.
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 import products in two different languages (EN and DE, where EN is the default language) using the built-in importer. The import of EN and DE reports no issues, and the WPML Export and Import also run with no issues. The shop initially shows the variables and variations correctly.
Symptoms:
After performing an update to the EN product, all the DE local product attributes (such as size and colour) are afterwards not shown in the webshop. I expected to see translated variables/variations functioning correctly, but instead, I got a variable with no variations shown.
Questions:
Why are the DE local product attributes not shown after updating the EN product?
How can I ensure that translated variables/variations function correctly after updates?
In WPML, settings, under "Custom Term Meta Translation", the Custom fields are marked as "Don't translate". Before the product update, all 6 were shown. After the update, only the 3 EN are shown. I believe that some wpml hook deleted the tree DE's.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
If those attributes are custom attributes, that were created directly on the original product, then you should try to edit the attributes on the original product, save the product and then translate it again with the WPML Translation Editor to 100%.
I edited one of the attributes of the original product, but still no translated attributes are shown (ie. when looking at the translated product).
Where shall I re-translate the attributes ? It does not make sense to manually re-translate the whole product as the translations are already imported using the import tool.
If I try to re-translate the product, then all translations (ie all input fields) are empty. If I fill in all input fields (to 100%), then the translated product attribute is shown, but no translated values are shown.
Remember that after importing the csv files, everything seems to be working - ie translated texts and attributes are shown. The issue is after a simple change to the original product.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
If you use custom attributes, that are created directly on the product, then the only way to translate them is by translating the product using the WPML Translation Editor as a translation method.
If you use the WordPress Editor as a translation method or reply in imports without translating the products, then you need to use global attributes that are created as Products > Attributes.
When I import csv files with originals AND translations, then translations (custom attributes included) are imported correctly. I don't need to re-translate them. I can see the products and variations (in the shop) in both languages. The problem arise if I afterwards want to, as an example, change the price of the original product.
Can't we migrate products from one shop to another without re-translating ?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Yes, if you make edits on the original product you will need to update the translation and it would be expected that the custom attributes are translated together with the product on the translation editor.
The problem generally is, that if you use the WordPress Editor, you will not be able to translate custom attributes, but if you earlier imported translated attributes, then this usually should remain saved.
I would like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.
You can find the required fields below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.
I may need to install a plugin called "All In One WP Migration" to create a copy of the website so I can investigate the issue further.
However, I would also be very grateful if you could provide a staging site or a copy of the website from your server for this purpose.
If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/account/websites/.
If you are unable to provide such a copy of the website for testing, please let me know on this ticket.
The private reply form looks like this: hidden link
Click "I still need assistance" the next time you reply.
Video: hidden link
Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket in the private response form.
1. I deleted all products
2. I imported the csv (with original and translated products)
3. I ran the wmpl export import
4. The products and translations are shown correctly.
5. I updated the description of a product (in the original language)
6. The product variations of the translated product are not shown
7. The WooCommerce > WooCommerce Multilingual & Multi-Currency > Status show no erros.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I would suggest you update all the plugins, then test again and if the issue persists, then please send me your import files and let me know which import method you are using.
I will then try to recreate the issue on a new test site and if I can not recreate it I will take a copy of your site for testing.
One question:
Do you get the same results if you disable the plugin "wpmlimport-137"?
Questions:
You did use the WooCommerce Export method at Products > All Products > Export?
Did you make any edits to the column titles or rows of the file?
Your example uses "Parent" values like "id:26" which might be a mismatch.
You should usually use the ID "26" in such cases.
Also, the field for that parent should be empty and not "0".
You use:
id:26
id:26
But it should be:
26
26
---
If I run a test on a minimal setup I can not confirm such issue. It seems the export file was altered somehow.