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.

Tagged: 

This topic contains 5 replies, has 1 voice.

Last updated by Otto 1 day, 6 hours ago.

Assisted by: Otto.

Author Posts
May 6, 2025 at 3:29 am #16998924

itA-15

Background of the issue:
I am trying to translate an English page to a Spanish page using WPML. The English page is available at hidden link, and the Spanish page is at hidden link. I expected the Spanish page to show stock details like the English page.

Symptoms:
After translating the English page to Spanish, the Spanish page shows an error: 'This product is currently out of stock and unavailable,' even though the product is available on the English page.

Questions:
Why is the Spanish page showing the product as out of stock when it is available on the English page?
How can I ensure the stock details are correctly translated and displayed on the Spanish page?

May 6, 2025 at 1:04 pm #17001817

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

Here are a few steps you can try to resolve the issue with the Spanish product page showing as out of stock:

1. Update WPML and its add-ons to the latest versions. Please refer to the screenshot I’ve attached to ensure all components are up to date.

2. Confirm whether this issue affects only this product or if other translated products are also showing incorrect stock status. This will help us narrow down whether it's a global issue or specific to one item.

3. Go to WooCommerce > WooCommerce Multilingual & Multicurrency, scroll to the bottom right, and under the Troubleshooting section, click "Sync product stock quantity and status". This syncs inventory data between translations.

4. If the above steps don’t resolve it, and the issue is only with this product, try this:

* Edit the original (English) product in the backend and click Update (even without changing anything).
* Then, edit the Spanish translation and resave it as well.

Let us know how it goes or if you'd like help going through any of the steps.

update.png
May 7, 2025 at 7:01 am #17004581

itA-15

We attempted the steps in our demo environment, starting with updating WPML and its related add-ons. However, the update did not complete successfully. We encountered the following message:

Update failed: undefined error message

URL: hidden link

proof - 2.png
May 7, 2025 at 2:07 pm #17007053

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Regarding the update. Please try the following:
Please go to http://www.wpml.org/account/sites and delete the URL.
Then add it back. This will generate a new site key.
Then, go to Plugins -> Add New -> Commercial and click the link to unregister WPML from your site.
You will then see the field where you can enter the new site key to re-register the new key.

After that, try to update the plugin again.

Regarding the stock display. The original product stock display seems to be custom or added by a plugin or the theme, am I right? Can you please elaborate on how it was built?

Best Regards,
Otto

May 12, 2025 at 3:38 am #17020933
itA-15

Hi Otto,

Thank you for your suggestions.

We have successfully updated the WPML plugin and its add-ons following the first set of instructions. The plugin was unregistered, a new site key was generated, and re-registration was completed as advised.

However, the issue with the Spanish product page still persists.

Issue Summary:
We are trying to translate an English product page to Spanish using WPML. While the English version correctly shows the product as in stock, the Spanish version incorrectly displays the message:
"This product is currently out of stock and unavailable."

Steps Already Taken:
Updated WPML and all related add-ons to the latest versions (screenshot available if needed).

Verified that this issue is specific to one product – other translated products are not affected.

Used the "Sync product stock quantity and status" option in WooCommerce > Multilingual & Multicurrency > Troubleshooting.

Edited and updated both the original English product and its Spanish translation as instructed.

Despite all these steps, the problem remains unresolved.

Questions:
Why might the Spanish product page still show as out of stock even after syncing?

Is there a possibility that a custom function, theme integration, or plugin is overriding the stock display for translated products?

Is there any WPML debug option or log we can refer to for deeper insights?

We’d appreciate your further assistance in identifying the root cause of this issue.

New threads created by Otto and linked to this one are listed below:

https://wpml.org/forums/topic/product-stock-is-0-in-secondary-language/

May 12, 2025 at 2:26 pm #17023448

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks, I am glad the first issue is solved.

I created a new ticket for the second issue. I am closing this one, and I'll follow up here:
https://wpml.org/forums/topic/product-stock-is-0-in-secondary-language/

Best Regards,
Otto