[Resolved] Change default language of existing products in bulk.
This thread is resolved. Here is a description of the problem and solution.
Problem:
How can I change the default language of existing products, from English to Ukrainian?
Solution:
- Backup database
- Go to the edit screen of the product (original language)
- Change the language using the Language switcher at the top admin bar to Ukrainian
- On the right sidebar, select "none" at "This is a translation of" and save
- Now, on the right sidebar, "This is a translation of" select back original language page.
- Popup will appear asking you if you wish to change the default language of the product.
- Confirm by selecting checkbox and Assing.
I have products in 3 languages. English, Ukrainian, Russian.
Most of the products have their original language - English. As a result, I have blocked fields when editing an item in Ukrainian (price, discounted price, ...).
How to make the original language for all products in Ukrainian. (so I can edit any fields in Ukrainian)
Languages: English (English )Spanish (Español )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello, welcome to the WPML support Forum!
Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.
To create a product in the Ukrainian lanuage:
- Backup database
- Go to Products > All Products
- Change the language using the Language switcher at the top admin bar to Ukrainian
- Create YOur product
- Translate it to other lagnuages
To edit a existing product:
- Backup database
- Go to the edit screen of the product (original language)
- Change the language using the Language switcher at the top admin bar to Ukrainian
- On the right sidebar, select "none" at "This is a translation of" and save
- Go back to the original product
- On the "This is a translation of" field, select the Ukrainian product
Note that probably these fields will be blocked on english language now. We need more details to know what is the best approach in this case.
Please let us know if it worked for you.
To ensure the quickest and most accurate support, please provide your debug information so that I can get a look at some of your configurations. We have an excellent article on how to located here: https://wpml.org/faq/provide-debug-information-faster-support/.
NOTE:
Please be sure to check the box to indicate you can provide debug info and paste your debug info in the debug field provided, and NOT in the general response field.
Hello,
I made one for existing products.
But I didn’t receive one product in 3 languages, with Ukrainian as the main language.
Instead, I received 2 items and I don't know what to do with them.
(moreover, the product in Ukrainian again needs to be translated into 2 other languages)
I can see why this happened, please check my video and image, and follow the next steps in order to change the default language of the product:
- Backup database
- Go to the edit screen of the product (original language)
- Change the language using the Language switcher at the top admin bar to Ukrainian
- On the right sidebar, select "none" at "This is a translation of" and save
- Now, on the right sidebar, "This is a translation of" select back original language page.
- Popup will appear asking you if you wish to change the default language of the product. Select checkbox and Assing.
Video: hidden link
I hope I was helpful. Don't hesitate to ask if you find any problem along the way, I'll gladly help you.
Thanks, the video helped. I managed to change the main language in one product.
1) I have about 200 products, is there a way to change the main language for all products at once?
2) will this method work for products with variations?
1) We do not currently an option for this in a bulk, since it is not really recommended to change the default language in which post/product is created.
You can try the next method, that seems to work for some clients, please note I have not tested this method nor sure if it works correctly.
Or you can contact our WPML contractors to help you out achieve this with some custom coding:
2) Yes it should work with variable products also.
Kind regards,
Drazen
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.