Home›Support›English Support›[Resolved] Cannot add transled to cart product- it shows that it is out of stock
[Resolved] Cannot add transled to cart product- it shows that it is out of stock
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate a product from Polish to English and add it to the cart, but the product appears as out of stock and does not display an 'Add to cart' button. Solution: If you're experiencing this issue, we recommend checking the settings in WooCommerce → WooCommerce Multilingual & Multicurrency → Currencies. Specifically, look for the option 'Show only products with custom prices in secondary currencies' and ensure it is disabled. This setting can hide the 'Add to cart' button for some products when enabled.
Please note that this solution might be outdated or not applicable to your specific 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 the problem persists, please open a new support ticket at WPML support forum for further assistance.
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.
Background of the issue:
I am trying to translate a product from Polish (PL) to English (EN) and add it to the cart. The issue can be seen on this page: hidden link
Symptoms:
I cannot add the translated product to the cart; it shows that it is out of stock. I expected to see an 'Add to cart' button, but instead, I got nothing and cannot add to the cart.
Questions:
Why is the translated product showing as out of stock?
How can I enable the 'Add to cart' button for the translated product?
While waiting for one of my colleagues to be assigned to your ticket, please go to WooCommerce -> WooCommerce Multilingual -> Status -> Troubleshooting and click on "Sync Product Stock Quantity and Status"
NOTE: the count will reset most likely back to the same count, that is OK the process has ran, once it's done you go ahead and check again the stock in the front end and let us know your results.
I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.
We just realized there is a new version of the WPML plugins. Am I permitted to update them and install a plugin like Adminer to check the database? Can you also confirm that the full backup has been completed?
Sure 🙂 It should be fine now. Can you please check?
The option "Show only products with custom prices in secondary currencies" was enabled in WooCommerce → WooCommerce Multilingual & Multicurrency → Currencies, which was hiding it for some products.