This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an issue where the 'Add to Cart' buttons in a WooCommerce shop integrated with WPML/WCML are adding the wrong products to the cart across different languages. The buttons link to incorrect product IDs or to the base language product ID.
Solution:
1. Navigate to WPML → Settings → Custom Fields Translation.
2. Search for the custom field related to product IDs, such as 'woosb_ids' or 'product_ids'.
3. Set the relevant custom field to 'copy'. This ensures the product IDs are correctly synchronized across translations.
4. Save the changes.
5. Edit the original product (even a small change like adding a space) and save it. Then, update the translation via the WPML Translation Editor or Translation Dashboard to resync the product data.
6. Clear all website and browser caches, then test the 'Add to Cart' functionality in each language.
If the issue persists or if you are using any custom product types or WooCommerce extensions, it might be necessary to check for compatibility issues with WPML. In such cases, or if this solution does not resolve the issue, we recommend visiting our support forum for further assistance. Additionally, always ensure to check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins.
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 1 replies, has 0 voices.
Last updated by 1 week, 5 days ago.
Assisted by: Carlos Rojas.