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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 0 replies, has 2 voices.

Last updated by Christopher Amirian 1 day ago.

Assisted by: Christopher Amirian.

Author Posts
November 20, 2024 at 1:13 pm

stefanosM-3

Background of the issue:
I have a site with two languages (Greek as the main language and English). The eShop is connected to an ERP system, and we run two requests for each product change, one for each language.

Symptoms:
When I run the request first for Greek and then for English, it removes variations from the Greek product.

Questions:
How can I fix the issue where running the Greek request first removes product variations?

November 20, 2024 at 2:08 pm
November 20, 2024 at 4:08 pm #16425598

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

I asked for help from the second-tier support. I will get back to you here if I have an answer.

November 27, 2024 at 1:11 pm #16449917

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

I have got an answer from the second tier support:

We are dealing here with updating via API. I assume that we are talking about REST API, so the user should follow the examples mentioned in https://wpml.org/documentation/related-projects/woocommerce-multilingual/using-wordpress-rest-api-woocommerce-multilingual/

Thus the SKU check should be bypassed by our code, and the variations should be updated properly for the translated languages.

I am not sure what kind of logic the user is running, so I cannot advise anything except to try to bypass the SKU uniqueness check - but this is relatively dangerous if done improperly and for each products.

Thanks.