Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with automatic translations not covering the entire website and products in some languages not being able to be added to the cart. Specifically, the client mentioned that on the staging site, the 'add to cart' button was unresponsive, and on the production site, the quantity appeared as 0 instead of replicating the main language quantity.
Solution:
We reviewed the client's staging site and confirmed that the issue with adding products to the cart was not present in all languages, but only when the stock quantity for certain product variations was set to "0".

We advised the client to check the original product in the WordPress Editor and ensure that the stock quantities are correctly set for all variations. If the stock is not empty, the product should be addable to the cart in all configured languages.

In case the stock is not synced then it might be that systems fields have been altered at WPML > Settings > Custom Field Translation. We recommended ensuring that the WPML configuration changes made to 'copy' settings are correctly applied across all environments for fields like "_stock" to maintain consistent behavior.

If this solution does not resolve your issue, or if it seems outdated or irrelevant 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 problems persist, please do not hesitate to open a new support ticket with us 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.

This topic contains 0 replies, has 0 voices.

Last updated by kevinB-74 1 week, 1 day ago.

Assisted by: Andreas W..

Author Posts
March 26, 2025 at 7:52 am

kevinB-74

Background of the issue:
I am trying to translate my entire website automatically using WPML. The site I need help with is hidden link.

Symptoms:
Some parts of the website are not translated, and products in some languages cannot be added to the cart.

Questions:
Why are some parts of my website not translated automatically?
Why can't products be added to the cart in some languages?

March 26, 2025 at 10:37 am
March 27, 2025 at 9:08 pm #16870500

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please provide more details about the issue.

Why exactly are you not able to make a purchase?

Anytime I try to make a purchase on this staging site, I get

"There are no shipping options available."

This is also the case if I test the site without WPML running the site with WooCommerce only. (using European billing addresses)

---

Take note, that when it comes to Wholesale there are many fields at WPML > Settings > Custom Field Translation that need to be set to "Copy". I already adjusted the settings, but you will still need to update the translations of the products so that the settings will be copied over to each product.

Best regards
Andreas

March 28, 2025 at 7:58 am #16871342

kevinB-74

Hi,
I don't speak about logistic. But check this page :
hidden link

we can't click on add to cart button.

In production I have a different way now add to cart button appear but quantity seems to be 0 instead of replicate main language quantity : hidden link

On production I replicated the change you made on WPML config to "copy"

March 28, 2025 at 3:49 pm #16873691

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Your example:
hidden link

My apologies, but I can not confirm the issue on the staging in its current setup.

I do not have an issue with adding this product to the cart in English or other languages.

Check the original product on the WordPress Editor.

The stock quantity on many variations is "0" and this is why you can not add it. Those attributes will not be able to be selected if the stock is empty. If you choose for example the attribute "7" you can add it to the cart.

March 31, 2025 at 9:31 am #16878244

kevinB-74

In this case, why product quantities are nos synchronized between product languages?

this is supposed to be the same stock quantity between each product language version not?

March 31, 2025 at 9:38 am #16878281

kevinB-74

I forced a stock synchronization on production environment and now product can be aded to cart