We have our webshop, that periodically imports all products automatically with an API.
We need on importing the products in the base language, that they get automatically duplicated in the other languages. So all the content should be duplicated in the other languages automatically by WPML, then alone can the API overwrite the translations.
Can you show me how to do this: there should be an option, or a php function for this ?
We can't each time when the woocommerce synchronizes, go to WPML and choose "bulk duplicate untranslated products", that is such an inefficient hassle.
However note that development of such functionality goes outside of support scope, but you can reach out our https://wpml.org/contractors/ if unsure how to achieve this.
But this has to be done manually, automatic way goes through the above functions, but you need to implement them into your import template.
These are the only options.
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.