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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Europe/Madrid (GMT+01:00)
Tagged: Documentation request, Not WPML issue, WCML
Related documentation:
This topic contains 48 replies, has 3 voices.
Last updated by Marcel 3 weeks, 3 days ago.
Assisted by: Marcel.
Author | Posts |
---|---|
October 10, 2024 at 3:18 pm #16276262 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, As I mentioned earlier, the mix of categories likely occurred because data from previous imports were still present. I removed all data before conducting my test. Everything I did for the import is documented in the video.
I didn't had any mixed content, as I removed all data before. However, no users would have seen the mixed categories, as the content was in Draft, as confirmed in my earlier message. Best regards, |
October 11, 2024 at 12:47 pm #16279727 | |
alirezaS-3 Site owner |
Hi Marcel I ran another set of imports and the result is the same. Please take a look at the enclosed pdf. Before starting the imports everything related to this product are deleted. pdf = hidden link This issue is mix of categories, and the first issue is seen after the import of translations (de.csv) Are you 100% sure that it's not possible to import the en.csv without category information in the en.csv file ? Remember that you have access to our wordpress site. Thanks in advance. Regards |
October 12, 2024 at 4:02 am #16281515 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Could you please try to recreate the issue on the following test site and explain in detail the steps you took when importing the products? hidden link Best regards |
October 13, 2024 at 6:39 am #16282669 | |
alirezaS-3 Site owner |
Hi Andreas, Even though I'm logged in, I can't see/follow your link to the test site. Please resubmit. Thx |
October 13, 2024 at 7:01 am #16282676 | |
alirezaS-3 Site owner |
It seems that in order to see the link, you first need to make a reply....any I got the link and did the following: 1. Import de.csv Now take a look at the categories. They are mixed, ie. you see en and de mixed in one screen. If you had a 'live' webshop, then you would see this online/immediately. I haven't run any wpml export import actions. |
October 14, 2024 at 10:46 am #16285294 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
The product categories are currently all imported to site default language which means on this test site they are currently not translated. Did those categories already existed on your site before import were they already? |
October 14, 2024 at 7:09 pm #16287619 | |
alirezaS-3 Site owner |
Yes, they existed before import. DE: EN: Is it possible to import the en.csv (translated language) with empty information in the 'category' field/column ? Can't the category information be taken from the original language ? Do you know what I mean ? |
October 15, 2024 at 4:30 am #16288420 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Yes, I will run a view tests and then get back to you. Usually, if you save again the product, it should sync the categories always from original product to translated product. It is usually by default not even possible to use different categories on a second language. |
October 15, 2024 at 6:47 am #16288727 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
As I mentioned earlier, on our test site the import created all product categories in site default language. I have assigned the imported English categories to have the English source language and connected them with the German categories. Further, I made sure that the categories use the same hierarchy in both languages. I then visited the imported product and realized that they also both were imported into site default language. It looks like after you imported both files you did not run the WPML Export & Import Option to connect the contents with WPML. See screenshot. Could it be that you missed this last step when importing the content on your site? Now, while having the categories set on my test site, I removed the imported products and ran a new import. After running the import not any of the products is assigned to a category. The products and their attributes were imported correctly, but not even the original products were assigned to the categories. Even worst, the import created new duplicates for existing categories and reverted the whole hierarchy. I then disable WPML and our add-ons, removed the products and categories from the site and imported only the German product while using the site default language German in WordPress. This means at this moment only WooCommerce is active and we try to import only the original product. I did not import the WPML meta fields running this import. In this case, I can confirm the same issue. The imported products are not assigned to any category, which means it is WooCommerce's import that actually is not considering the categories. It creates them, but it does not link them with the product. If I run now a second import, it does not create duplicated categories. This might be some issue caused by WPML Export & Import, as the WooCommerce import method is not using the slug to identify each category. But most important at this point is, that even the original products are not assigned to any category even when testing without WPML. This said, I believe your idea to exclude categories from import might be a good choice. Apart from that I hope my test clarified, that this issue is something that needs to be reported to WooCommerce. |
October 15, 2024 at 12:47 pm #16290758 | |
alirezaS-3 Site owner |
Hi Regarding my own import(s), it's correct - which I also wrote - that I didn't ran the wpml export import. I wanted to show you that the categories were mixed up before I ran a wpml export import (which mixes up the categories even more). I can see that you have almost started from scratch, running an import on your test site without WPML installed. You write "The imported products are not assigned to any category, which means it is WooCommerce's import that actually is not considering the categories." This is not correct. When you look at the imported product, you can see that its has been assigned to all three categories. Also the categories are created as expected. See attached image. |
October 15, 2024 at 12:54 pm #16290835 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Thank you for this detail! In fact, if you go to this link you will see that the product count is "0" on the categories and this is unexpected: hidden link The issue with the category import with WPML Export & Import seems to be, that if the same category already exists, it will create a duplicate. We will try to recreate this issue again and do some internal research today. We will keep you updated. |
October 15, 2024 at 4:59 pm #16292046 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi Thomas, I’m back from vacation and will be taking over this ticket again. Please allow me a little more time to review the test files, and I’ll get back to you. Best regards, |
October 15, 2024 at 6:16 pm #16292285 | |
alirezaS-3 Site owner |
To Andreas The product count is '0' because the product is in 'draft' mode. To Marcel Welcome back 😉 |
October 17, 2024 at 3:17 pm #16301123 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi! Thank you for your patience. After conducting further tests, I was able to reproduce the following. Here are the exact steps I followed: #1 I imported the German version, and currently have the product in Draft mode with 8 categories assigned: Unkategorisiert, Marken, Bernhard Pedersen & Søn, Produkte, Accessories, Spiegel, Möbelstücke, and Aufbewahrung. #2 I imported the English version, and both products remain in Draft mode. Currently, the EN product is still assigned to the "DE" categories because the WPML Import/Export process hasn't been initiated yet. Now, I see a total of 15 categories in German: Unkategorisiert, Brand, Bernhard Pedersen & Son, Marken, (second because EN) Bernhard Pedersen & Søn, Products, Accessories, Mirrors, Furniture, Storage, Produkte, Accessories, Spiegel, Möbelstücke, and Aufbewahrung.
I initiated the WPML Import/Export action, and now we have one product in German and one in English. #3 I have now 12 categories in German and 4 in English: EN: #4 I removed both products but kept all categories. The result is still 12 categories in German (with mixed entries) and 4 categories in English, though only 1 category is actually visible, as before. #5 I re-imported the German product, and all categories remained the same. However, the category count for English changed from 8 to 4 (but only Unkategorisiert" is hidden link">viewable: Additional info: I can confirm that the EN categories were imported into the DE product and remained visible in DE even after the import. The second import didn’t cause the mix-up; it was the EN import that mixed the categories. Can you confirm this until here? Best Regards, |
October 17, 2024 at 4:31 pm #16301483 | |
alirezaS-3 Site owner |
Hi Marcel #1 My answer: Correct, the 8 categories are created and when looking at the actual product, its directly assigned to Aufbewahrung, Bernhard Pedersen & Søn and Spiegel #2 My answer: Correct, a total of 15 categories are seen and when looking at the actual EN product, its directly assigned to Bernhard Pedersen & Søn, Mirrors and Storage - If shop customer at this point are looking at the product categories then they will se DE categories mixed EN categories. #3 My answer: Correct, I get the same result. #4 My answer: Correct, I get the same result. Category count = 16. 12 DE and 4 EN. Question: When deleting the DE product, shouldn't the system automatically delete the EN version - as it's linked to the DE version ? Or is this standard in WPML that you manually have to delete all translated/wpml linked version(s) of a product ? #5 My answer: In number 4 you wrote that you had 4 EN categories, so you must have made a typo in number 5 (you wrote "the category count for English changed from 8 to 4"). I had 12 categories in DE and 4 categories in EN (and only Unkategorisiert shown). Category count = 16 you wrote: To be more precise: - 1st (de) import was fine Best regards |