This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an issue where the product ID changes when switching languages from Italian to English in a WPML-translated e-commerce platform. This change in ID causes issues with the platform's ability to recognize the correct product.
Solution:
We explained that each translation in WPML is treated as new content, hence each has a unique ID. To maintain consistency across languages, you can use the
wpml_object_id
hook to fetch the correct translated content's ID. This ensures that each language displays the appropriate content without changing the original product ID in all languages. For more details on how to implement this, please visit the documentation on WPML Object ID Hook.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly suggest 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. For further assistance, please contact our support team 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 3 replies, has 2 voices.
Last updated by 11 months, 3 weeks ago.
Assisted by: Andreas W..