[Resolved] Woocommerce Related product translation
This thread is resolved. Here is a description of the problem and solution.
Problem: You are unable to translate the 'related product' field manually or automatically in WPML. Solution: The 'linked products' field is locked for product translations and cannot be translated directly as it syncs with the original product. Here's how to manage it: 1. Create some products and translate them. 2. Add some of these products to the 'linked products' field. 3. Translate the product to which you added items in the 'linked products' field. 4. Ensure that the products in the 'linked products' field are translated first. They will then appear correctly in the translated product.
This solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket at WPML support forum.
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 translate, or copy, the translations of the 'related product' field for my products on my site hidden link. I can't translate it by hand nor let it be translated automatically like product variation fields.
Symptoms:
I am unable to translate the 'related product' field manually or automatically.
Questions:
How can I translate the 'related product' field using WPML?
Please upload any relevant screenshots or links that would help illustrate the problem. I want to ensure that I fully understand the issue at hand so that I can provide the best possible solution.
No, it is not a custom field. It is a standard related products field for WooCommerce Products. You can see the field filled out in Polish (the original language), and in Czech (it does not translate, and I cannot add anything there). When using the translation dashboard, those fields are not offered.
Thank you for the explanation. I now have a clear understanding.
The "linked products" field is locked for product translations, along with some other product parameters, and this is expected behavior. This field cannot be translated because it remains in sync with the original product.
Here’s how it works, which I have confirmed on my local installation:
1. Create some products and translate them.
2. Add some of these products to the "linked products" field.
3. Translate the product to which you added items in the "linked products" field.
4. The "linked products" will appear in the translated product, but you must ensure that you have translated those products first.
I have created a few products already and translated them. I have added them to the original language version's linked products field and saved the product.
Now, when I go to edit the other language versions, I can add products to the linked products field, but after saving, they disappear.
As I mentioned earlier, the "linked products" field cannot be added to the translation. It is designed to work as I described above.
If I correctly understood, the items you add to the "linked products" field are the products. So you need to translate them separately as you do for the products in the usual way.
Ok, I think I get it. The translations are a separate product. You mean that if I wish to use the linked products, I need to have just one set of products with all the translations, right?
That is too much work at this moment. Can I force WPML not to translate this field somehow?
- Slightly modify the original product, such as adding something to the description.
- Add linked products.
- Save your changes (Update product).
- Navigate to the WPML translation editor to complete the product translation.
Does the translated linked product appear in the translated version of the product where you added them?
Ok, I think I get it. The translations are a separate product. You mean that if I wish to use the linked products, I need to have just one set of products with all the translations, right?
Yes, that's correct. You need to translate them.
That is too much work at this moment. Can I force WPML not to translate this field somehow?
The field won't appear for translation. You can not to translate the linked products.