Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Kyiv (GMT+03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Bruno Kos 1 year, 6 months ago.

Assisted by: Andrey.

Author Posts
November 15, 2023 at 5:08 pm #14819135

christianK-20

I am currently working on a bulk import script to synchronize products daily on my Woocommerce WordPress using the WPML plugin.
Following the WPML documentation on the wpml_set_element_language_details hook, it appears that the recommended approach for creating translations is to duplicate products/posts for each language (in my case, Portuguese, English and Spanish).
However, I am encountering a challenge with this method due to the requirement that the SKU must be the same for all languages. Since each duplicated product needs a unique SKU, it creates a conflict with the consistency of product references across different languages.
I am reaching out to inquire if there is an alternative approach or solution to creating translations for products without having to duplicate them, thus avoiding the SKU conflict. I have explored the documentation but wanted to seek your expertise on this matter.

November 16, 2023 at 2:26 pm #14827821

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support!

What about using REST API?
https://wpml.org/documentation/related-projects/woocommerce-multilingual/using-wordpress-rest-api-woocommerce-multilingual/#create-products

Regards,
Bruno Kos

The topic ‘[Closed] How to programmatically translate products in woocommerce with wpml’ is closed to new replies.