I am trying to: create a WooCommerce WPML translation for an existing product from 'en' to 'el' (language) using the "/wp-json/wc/v3/products" API end-point but instead of creating a new translation, the WooCommerce/WPML API creates a new product in 'en' language that is not connected to its "translation_of" English Language product.
Link to a page where the issue can be seen: hidden link
English (working): hidden link
Greek (problematic): hidden link
I expected to see: the Greek Language product to be created under the 'el' language and as a translation to the 'en' English Language product.
Instead, I got: a new product in 'en' language that is not connected to its "translation_of" English Language product.
I understand the issue you're having and will try my best to assist you in this matter.
I conducted a test by creating a product and its corresponding translation through the WooCommerce REST API and can confirm that everything is working properly. The product and its translation are appropriately linked. You can view the results in these screenshots: Translation executed via REST-API [ hidden link ], and in the backend [ hidden link ].
Please be informed that the "lang" and "translation_of" parameter depends on the WooCommerce Multilingual plugin. Could you please make sure that the latest version of the WooCommerce Multilingual plugin is activated on your site?
Let me know the update. I will be happy to help if you need further assistance in this matter.
Best regards,
Prosenjit
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.