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 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 3 replies, has 0 voices.

Last updated by Prosenjit Barman 5 months, 2 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
November 18, 2024 at 3:50 pm #16415645

tobiasH-57

Background of the issue:
I am trying to synchronize the stock for variable products on my site hidden link. The stock in the original language is 975, but in the translations, some products show 0 stock. I followed the instructions from this documentation: https://wpml.org/errata/woocommerce-multilingual-variable-product-stock-status-is-not-updated-when-it-gets-out-of-stock-in-the-second-language/ and replaced the suggested code, but it didn't change anything. The fields are locked by WPML, so I can't adjust the stock manually.

Symptoms:
The stock for some variable products is not synchronized between the original language and the translations, showing incorrect stock levels.

Questions:
Why is the stock not synchronized between the original language and translations?
How can I manually adjust the stock if the fields are locked by WPML?

November 19, 2024 at 8:15 am #16417964

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML Support.

I understand that the stock information is not synchronized across the translated products. Could you please try the following steps to see if it helps resolve the issue?

1. Go to the "WooCommerce > WooCommerce Multilingual > Attributes" tab.
2. Select the Attribute from which the variations have been created.
3. At the bottom, you'll see a button to synchronize the attributes. Click on that button and complete the attribute synchronization.
4. Once done, go to the "Status" tab.
5. Scroll down a bit until you find a link named "Troubleshooting" and click on it.
6. Select the options marked in this screenshot( hidden link ) and click the "Start" button.

The steps above most of the time help in fixing issues related to Stock synchronization and I hope it will help in your case too. Please feel free to let me know if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

November 19, 2024 at 2:44 pm #16420282

tobiasH-57

Hi Prosenjit,
thanks for helping.
Unfortunately the suggested steps didn't resolve the issue.

Besz regards
Tobias

November 20, 2024 at 4:18 am #16422210

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,

Thank you for the update.

Upon rechecking the WPML Debug Info, I noticed that the field storing the stock information is set to "not translatable." This could be preventing stock information from synchronizing across languages. Please follow the steps below to address this and see if it resolves the issue:

1. Navigate to "WPML → Settings → Custom Fields Translation".
2. Click on "Show System Fields".
3. Once the page reloads, use the search box within the custom field translation section to search for `_stock`.
4. If the `_stock` field appears in the results, set its translation preference to "Copy" and save the changes.
5. After that, retry the stock synchronization process mentioned in my earlier response.
6. Finally, clear your site and browser caches and check if the issue is resolved.

I hope these steps will help in solving the issue. But, if the issue persists, I'll be happy to take a closer look at the issue and assist you further in this matter.

Best regards,
Prosenjit

The topic ‘[Closed] Variable product stock not synchronized’ is closed to new replies.