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.
Tagged: WCML
Related documentation:
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: Example: original language product: 30 units If we save the product in this order: 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: 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? 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 icl_translations table: postmeta table: 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. 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. |