This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to translate products using WPML, but encounter issues where the translated product shows a stock of zero, you cannot modify the stock, and adding translated products to the cart results in an empty cart.
Solution:
We found that the issue was due to multiple _stock entries in the database for the translated version, with one entry having a NULL value. This was likely caused by a custom code snippet intended to force stock levels. To fix this, we edited the database entries to ensure all translations have correct _stock values and deactivated the problematic code snippet. We recommend you test again to see if you can now add the translated products to the cart correctly.
If this solution does not resolve your issue or seems outdated, please check the related known issues and verify you have the latest versions of themes and plugins installed. If problems persist, we highly recommend opening a new support ticket at WPML support forum.
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.
This topic contains 24 replies, has 0 voices.
Last updated by 9 months ago.
Assisted by: Paola Mendiburu.

