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
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 4 replies, has 0 voices.

Last updated by Carlos Rojas 4 days, 6 hours ago.

Assisted by: Carlos Rojas.

Author Posts
November 27, 2024 at 9:05 am #16448141

henryC-13

Background of the issue:
I am using WP 6.6.2, WooCommerce 9.3.3, and WPML 4.6.13 to manage a multilingual store with 4 languages (English, German, Italian, Swedish) and 2 currencies (Euro, Swedish Krona). The default language is English and the default currency is Euro. I am trying to ensure that products remain in stock across all languages after being ordered. I referred to the settings in this post: https://wpml.org/forums/topic/product-translations-getting-market-out-of-stock/ but it didn't solve the problem.

Symptoms:
Sometimes, after being ordered, a product becomes out of stock in the secondary languages (German, Italian, Swedish), while it remains correctly available in English. This issue occurs randomly and cannot be reproduced in a test/staging environment. Customers using those languages see the product as out of stock when it is not.

Questions:
Why do products become out of stock in secondary languages after being ordered?
How can I ensure products remain available in all languages after an order?

November 27, 2024 at 10:01 am #16448479

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

Please check if you have object cache enabled as we have some issues that might affect this andthe sync of stock?

- https://wpml.org/errata/object-cache-pro-various-issues/

If not, then please try to see if there are any specific steps that cause this, so we can try to help further.

Regards,
Drazen

November 27, 2024 at 10:07 am #16448532

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
My name is Carlos and I will continue working on this ticket

Besides the steps provided by my colleague, I would like to ask you to follow these other steps to rule out other possible causes:
- Create a full backup of the site
- Update all outdated plugins, themes, and the core. You can update the WPML plugins in Plugins -> Add new -> Commercial tab
- Apply the workaround described in this errata page: https://wpml.org/errata/wordpress-6-7-mo-files-not-loaded-and-leading-to-missing-translations-on-front-end/
- Flush any cache memory that might exist
- Go to Woocommerce -> Woocommerce Multilingual & Multicurrency -> Status tab -> Troubleshooting link (bottom right) -> Select all options and click 'Start' -> Wait for the process to finish
- Double-check if the issue appears again

Important note: To isolate the cause of the issue we need to be able to reproduce the problem at will.

November 27, 2024 at 12:36 pm #16449250

henryC-13

Hello!

Dražen,
we are not using object cache plugin.

Carlos,
regarding this part:

"Go to Woocommerce -> Woocommerce Multilingual & Multicurrency -> Status tab -> Troubleshooting link (bottom right) -> Select all options and click 'Start' -> Wait for the process to finish"

I forgot to mention that we already tried this solution too, as found in this post:
https://wpml.org/forums/topic/out-of-stock-products/
but with no luck.

Anyways, I will follow your complete steps but I'll wait for the Black Friday / Cyber Monday days to end, since it's too risky to do it right now and we don't want to have any issues during this period.

Please leave this thread open.
I will come back as soon as I can.

Thank you

November 27, 2024 at 12:42 pm #16449601

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you for your message.

I will be waiting for the results of the steps 🙂