This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an issue where product variations such as color and size are not included in the
line_items.name
attribute in the WooCommerce REST API response when the 'WPML Multilingual & Multicurrency for WooCommerce' plugin is active.
Solution:
1. Verify product attribute translation settings through the WooCommerce Multilingual attributes tab.
2. Synchronize product variations using WPML troubleshooting tools and re-save the variable product.
3. Check how variations are displayed in the backend order details in WooCommerce admin and verify the order language.
4. Use the
?lang=nl
parameter in the REST API call.
5. If these steps do not resolve the issue, reproduce the API request on a staging site with the same plugin/theme setup to confirm if there is a compatibility or integration issue between WPML and WooCommerce REST API for variable products.
6. Examine any filters or overrides on the REST API response, particularly those added by WPML or the theme.
If the problem persists, we 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 solution provided here is outdated or not applicable to your case, please open a new support ticket 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 0 voices.
Last updated by 4 months, 1 week ago.
Assisted by: Carlos Rojas.

