Problem: You are trying to retrieve a single attribute in a specific language via the `wc/store/v1` API endpoint, but you are receiving the attribute name in the default language (German) instead of the requested language (English). Solution: Attributes themselves are not translatable via the REST API, only their labels. To translate attribute names, navigate to WooCommerce → WooCommerce Multilingual & Multicurrency. In the 'Attributes' tab, scroll down to the 'Translations of taxonomy labels and slug' section and add the translations. As a workaround, you can use localized data to parse an object with all product attribute taxonomy names and their
$tax->labels->singular_name
, since labels are well translated thanks to WPML. This localized data is stored as a transient per language and deleted when their terms or taxonomies are edited/created/deleted.
If this solution seems outdated or does not apply to your problem, we recommend checking the known issues, verifying the version of the permanent solution, and confirming that you have the latest versions of themes and plugins installed. Don't hesitate to open a new support ticket if you still need help. Visit our support forum.
Problem: The client reported an issue where the admin received an order confirmation email in the HR (Croatian) language, but the customer received the same email in SI (Slovenian), despite all strings being translated correctly in WPML. Solution: We first recommended testing with only the default WordPress theme and essential plugins (WooCommerce and WPML) to ensure that the issue wasn't caused by any other plugin or theme conflicts. Upon testing, it was confirmed that the HR email was sent correctly to the customer under these conditions. Further investigation revealed that the issue was due to the use of a custom string added in the email content in SL (Slovenian), which was not translated. We advised the client to either translate these custom strings via WPML > Translation Management or to delete the custom strings and revert to using the default provided strings.
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. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.
Problem: If you're experiencing issues where product category images are not the same height across different language versions of your site, it might be due to custom CSS not being applied to the translated template. Solution: We recommend checking your default language category template for any custom CSS. If found, ensure this CSS is also added to the translated templates. Alternatively, for better management and consistency, add your custom CSS in a centralized location such as Elementor > Custom code, or Appearance > Customize > Additional CSS. Here is an example of CSS that you might need to apply:
.woocommerce ul.products li.product-category a img {<br /> width: 300; /* Ensures the image fills the container width */<br /> height: auto; /* Adjusts height to maintain aspect ratio if needed */<br /> aspect-ratio: 1 / 1; /* Forces a square format */<br /> object-fit: cover; /* Crops the image without distortion */<br />}
If this solution does not apply to your case, or if it seems outdated, 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 issues persist, please open a new support ticket at WPML support forum.