Skip to content Skip to sidebar

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.

This topic contains 8 replies, has 0 voices.

Last updated by nickolayB 3 weeks, 4 days ago.

Assisted by: Christopher Amirian.

Author Posts
March 30, 2026 at 11:34 am #17936332

nickolayB

Hello,

We are using WPML + WooCommerce and have found what appears to be a stock synchronization issue between the original and translated products.

The issue seems to happen when:
- a WooCommerce product is created with Manage stock disabled
- later, Manage stock is enabled
- stock quantity is updated on the original language product
- the translated product does not always receive the correct stock quantity

Example: original language product: 30 units
translated product: only 1 unit available for purchase
Workaround we found

If we save the product in this order:
- original language
- translated language
- original language again …the stock synchronization starts working correctly.

This suggests there may be a sync issue when stock management is enabled after the product and its translation already exist.

We also checked WPML custom fields translation settings and noticed that:
_stock is locked
set to “Don’t translate”
and the setting is defined via wpml-config.xml

Other related WooCommerce stock fields appear to use Copy.

Could you please confirm:

Is _stock = “Don’t translate” the expected default behavior in WooCommerce Multilingual?
Can / should this be changed?
If changed to Copy, what are the possible side effects?
Is this a known issue or edge case in WooCommerce Multilingual?

Thank you.

March 30, 2026 at 12:10 pm #17936422

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

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

Hello,

As you asked, we turned the chat to ticket. Please get back to us here if you have additional questions about the issue.

Thanks.

March 30, 2026 at 1:02 pm #17936576

nickolayB

We also noticed that on the affected products, the English product IDs are lower than the Ukrainian product IDs, even though Ukrainian is the site’s main language. It looks like the English versions may have been created first, and the Ukrainian versions added later. Could this product creation order possibly affect stock synchronization in WooCommerce Multilingual?

March 30, 2026 at 1:18 pm #17936651

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

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

Hi,

My assumption was that the issue should happen no matter what the ID of the product is, and it is happening when you somehow change the management of the stock.

Would you please provide the debug info:

https://wpml.org/faq/provide-debug-information-faster-support

I checked our issue tracker, and I did not find any instances of ID mismatch like the one you mentioned.

Maybe if you provide specific steps that throw the error, I can have a better idea?

Thanks.

March 30, 2026 at 1:44 pm #17936876

nickolayB

I added information. Unfortunately, the product update does not work.

March 30, 2026 at 1:54 pm #17936903

nickolayB

The problem only affects some products. For example, this one: hidden link (stock in Ukrainian: 30, stock in English: -1).

March 31, 2026 at 9:40 am #17939125

nickolayB

Hello,

I would like to clarify the following issue. Currently, the stock quantity is synchronized, and I am unable to change it on the translated version of some products. Is it possible to allow editing stock for certain products?

Additionally, I would like to provide some context:

Stock availability (in stock / out of stock) synchronizes correctly. The problem only affects the stock quantity. I have prepared database excerpts for the problematic product, which may help.

Example product
UA (main language): hidden link — post_id 3998
EN (translation): hidden link — post_id 3997

icl_translations table:
translation_id element_type element_id trid language_code source_language_code
2983 post_product 3998 3261 uk NULL
2981 post_product 3997 3261 en uk

postmeta table:
meta_id post_id meta_key meta_value
41812 3998 _manage_stock yes
41819 3998 _stock 30
41820 3998 _stock_status instock
49957 3998 _stock 30
67528 3998 _stock 30
75973 3998 _stock 30
41750 3997 _stock NULL
47591 3997 _stock NULL
65858 3997 _stock_status instock
86722 3997 _manage_stock yes

Observations:

For these products, the translation IDs are lower than the main language IDs. In the database, there are multiple _stock entries for the same product. I am not sure if this is normal.

Could you please advise whether this behavior is expected and if it is possible to allow editing stock quantity on translations?

Thank you for your help.

March 31, 2026 at 10:40 am #17939475

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

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

Hi,

Thank you for the information. I will need to check the dashboard myself and see if I can find any relevant information. The Database information did not seem to help here.

Regarding the IDs, did you change the defautl language of the website in any case?

I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

April 3, 2026 at 11:54 am #17947842

nickolayB

Since this issue affected only two products, the customer decided to recreate them. Therefore, I'm closing this issue.
Thank you for your help.