This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needed to access translated product attributes in WPML and was attempting to modify the code to get attributes in a specific language ('ru' for Russian), but the applied changes were not working.
Solution:
1. We informed the client that custom coding is beyond our support scope and directed them to our support policy for clarification.
2. We provided links to our hooks reference, which could help in finding the necessary information to solve the problem:
3. We requested the client's Debug information to better understand the site configuration.
4. We provided a code snippet that retrieves the translated value and label of product attributes, which works based on the page's language. The code is available on Pastebin: https://pastebin.com/0HqyaRqw.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also 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. For further assistance, please visit our support forum: 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 18 replies, has 2 voices.
Last updated by 1 year, 3 months ago.
Assisted by: Osama Mersal.