Pular para o conteúdo Pular para a barra lateral

Este tópico foi resolvido. Aqui está uma descrição do problema e da solução.

Problem:
The client is using WPML with WooCommerce and encountered two issues: 1) A product created in Portuguese shows available stock, but its Spanish translation appears as 'out of stock'. 2) On translated product pages, the header menu appears underneath the product images, indicating a z-index issue.
Solution:
For the stock issue, we recommended the client to follow the troubleshooting steps for stock synchronization in WooCommerce under WooCommerce Multilingual & Multicurrency → Status → Troubleshooting. This guide can be found here: https://wpml.org/documentation/support/wpml-troubleshooting-options/#troubleshooting-woocommerce-multilingual-and-multicurrency.
For the z-index issue, we requested a video to better understand the problem and asked for access credentials to further investigate the issue. We also advised the client to ensure all plugins and themes are updated and to create a full site backup before making changes.

If this solution does not resolve your issues or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If problems persist, please open a new support ticket at WPML support forum.

0% of people find this useful.

Este é o fórum de suporte técnico para o WPML — o plugin de WordPress multilíngue.

Todos podem ler, mas apenas clientes do WPML podem postar aqui. A equipe do WPML responde no fórum 6 dias por semana, 22 horas por dia.

Este tópico contém 11 respostas, tem 0 voices.

Última atualização: Carlos Rojas 3 semanas, 1 dia atrás.

Assistido por: Carlos Rojas.

Autor Posts
agosto 25, 2025 às 3:18 pm #17345618

pedroS-52

Histórico da questão:
I am using WPML with WooCommerce and have encountered two issues. I have a product created in Portuguese with available stock. After translating it into Spanish, the translated version appears as 'out of stock' even though the original has stock. I have confirmed that stock is available in the original product, the translation is correctly linked, and WPML and all related plugins are up to date. Additionally, on translated product pages, the header menu appears underneath the product images, indicating a z-index issue. Link to a page where the issue can be seen: link oculto

Sintomas:
The translated product shows as 'out of stock' despite the original having stock. The header menu appears underneath the product images on translated product pages, suggesting a z-index issue.

Perguntas:
Why does the translated product show as 'out of stock' when the original has stock?
How can I fix the z-index issue with the header menu on translated product pages?

agosto 26, 2025 às 8:28 am #17347077

Carlos Rojas
Apoiador do WPML desde 03/2017

Idiomas: Inglês (English ) Espanhol (Español )

Fuso horário: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting us

- Regarding the issue with the stock on the secondary language, I kindly ask you to run the troubleshooting steps related to the stock in Woocommerce -> Woocommerce Multilingual & Multicurrency -> Status tab -> Troubleshooting link (bottom right) as described in this guide: https://wpml.org/documentation/support/wpml-troubleshooting-options/#troubleshooting-woocommerce-multilingual-and-multicurrency

- I kindly ask you to share a link to a video showing the problem with the header because I can't see it. This will allow us to reproduce the issue and look for its cause.

Looking forward to your message.
Regards,
Carlos

agosto 26, 2025 às 3:44 pm #17349028

pedroS-52

Hi Carlos,

Thanks for your reply.

I’ve completed all the troubleshooting steps related to product stock under WooCommerce → WooCommerce Multilingual & Multicurrency → Status → Troubleshooting, as suggested. Unfortunately, the issue persists — the translated product in Spanish still shows as “out of stock” even though the original (Portuguese) product has available stock.

For context, I also changed the language URL format from using different domains (nuped.pt and nuped.es) to a single domain structure with language folders (nuped.pt/es). I did this to try to simplify the setup and eliminate any potential domain-related issues.

Regarding the menu z-index issue, here is the video showing the behavior:

link oculto

Regards,
Pedro

agosto 27, 2025 às 7:59 am #17350641

Carlos Rojas
Apoiador do WPML desde 03/2017

Idiomas: Inglês (English ) Espanhol (Español )

Fuso horário: Europe/Madrid (GMT+02:00)

Good morning Pedro!
Thank you very much for your message and for sharing the video.

I kindly ask you to share the access credentials to the site in your next message, which I have set private. This will allow us to reproduce the issue and check the configuration.

Please confirm you have created a full site backup that you can restore if necessary.

Looking forward to your message.

agosto 27, 2025 às 12:51 pm #17351932

Carlos Rojas
Apoiador do WPML desde 03/2017

Idiomas: Inglês (English ) Espanhol (Español )

Fuso horário: Europe/Madrid (GMT+02:00)

Thank you for sharing the access credentials.

Before continuing, I kindly ask you to create a full site backup and update all outdated plugins and themes that appear outdated in this link: link oculto

agosto 27, 2025 às 1:42 pm #17352205

pedroS-52

I've completed the update. I encountered some issues while updating a few plugins. I was getting an 'unauthorized' error, apparently related to the download of the Spanish language pack.

agosto 28, 2025 às 7:59 am #17353657

Carlos Rojas
Apoiador do WPML desde 03/2017

Idiomas: Inglês (English ) Espanhol (Español )

Fuso horário: Europe/Madrid (GMT+02:00)

Thank you for updating the outdated plugins.

Yesterday, we released a new version of the WPML plugins that includes several fixes to known issues. Would you mind updating the WPML plugins to the latest version in this link? link oculto

agosto 28, 2025 às 10:40 am #17354548

pedroS-52

Hello,

I’ve already updated the WPML plugins to the latest version, but unfortunately the issues are still persisting.

Best regards,
Pedro

agosto 28, 2025 às 11:27 am #17354712

Carlos Rojas
Apoiador do WPML desde 03/2017

Idiomas: Inglês (English ) Espanhol (Español )

Fuso horário: Europe/Madrid (GMT+02:00)

Hi Pedro,

I can now see the product in Spanish with stock -see attached image-

FireShot Capture 157 - Gomas para Pele, Unhas e Cabelo - Cuidados de Beleza - nuped.pt - [nuped.pt].png
agosto 28, 2025 às 11:40 am #17354842

pedroS-52

The issue is still the same. When I try to add the product to the cart, I get a notification/warning saying it’s out of stock. Also, on the product detail page it already shows the message “Quero Ser Notificado Quando Estiver Disponível” before even adding it to the cart.

You can compare the same product page in Portuguese and see the difference. I’m also using a plugin for bundle quantities (Bundler Pro), but I’ve already tested with the plugin deactivated and the problem still persists.

agosto 28, 2025 às 12:04 pm #17354954

Carlos Rojas
Apoiador do WPML desde 03/2017

Idiomas: Inglês (English ) Espanhol (Español )

Fuso horário: Europe/Madrid (GMT+02:00)

Hi Pedro,

Please create a staging site with a copy of the production site (you can use the WP Staging plugin freely) where we can run further tests without affecting the live site.

Share the access credentials to the staging site in your next message, which I have set private.

setembro 1, 2025 às 6:16 am #17361208

Carlos Rojas
Apoiador do WPML desde 03/2017

Idiomas: Inglês (English ) Espanhol (Español )

Fuso horário: Europe/Madrid (GMT+02:00)

Thank you for creating the staging site.

However, I am unable to access the backend because it is throwing a 500 error. These errors come from the server, so I'd recommend contacting your hosting providers and asking them to check the server logs.

You can also activate the WordPress debug mode (https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/) and check if there is any fatal error in the debug.log file located within the wp-content folder.

Note: The FTP credentials didn't work.