Home›Support›English Support›[Waiting for user feedback] Products randomly out of stock in secondary languages after being ordered
[Waiting for user feedback] Products randomly out of stock in secondary languages after being ordered
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/
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?
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.
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.