Background of the issue:
I'm importing products via CSV with a custom developed plugin by me, where I create WooCommerce products via WC_Product_Simple() function. I want to also make translations of that product via my code. I have tried using the link: https://wpml.org/wpml-hook/wpml_set_element_language_details/ but it fails.
Symptoms:
It says it can't create a product with the same SKU as the original one, so I'm totally lost.
Questions:
How can I programmatically set the language of a product created with WC_Product_Simple and make its translations?
Dieses Ticket ist jetzt geschlossen. Wenn Sie ein WPML Kunde sind und Hilfe benötigen, eröffnen Sie bitte ein neues Support-Ticket.