Background of the issue:
I am trying to translate my products on a site that is currently under development using WPML.
Symptoms:
When I translate a product that has stock, the translated version shows a stock of zero, and I can't modify it. Additionally, when I add any of the translated products to the cart, the cart remains empty and doesn't accept the products.
Questions:
Why does the translated product show a stock of zero?
Why can't I modify the stock of the translated product?
Why does the cart remain empty when adding translated products?
1.- Please increase the WP memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:`
- Add it above the line /* That's all, stop editing! Happy blogging. */
You can double-check the WordPress memory limit in WPML -> Support
2.- Once the WordPress memory limit then follow these steps:
- Edit a product in the original language
- Make a small change in the content of the product, especially in the variations or the price
- Save the changes
- Update the translation
- Flush any cache memory that might exist
- Double-check if the issue has disappeared
Yes, I have edited all the previous products and it worked, but this is not a solution.
Every time I translate a product, I have to open the translated product and make any change for it to get its stock.
I have a huge number of products, and this solution is not practical.