[Resolvido] Translated product shows as "out of stock" despite original having stock
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.
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?
- 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.
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:
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.
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
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.
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
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.
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.
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.