Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with array values being incorrectly displayed on the frontend in multiple languages, except German, for dropdown fields in the YITH WooCommerce Product Add-ons plugin, this might be due to the translation of specific field types. These array values, which are metadata for product configuration, appear in the shopping cart, order detail page, order email, and invoice.
Solution:
We recommend checking the field type used on your product page. For instance, if it's a Radio field type, navigate to WPML > String Translation and search for the string name [yith-woocommerce-product-add-ons]field-type. In this case, it would be [yith-woocommerce-product-add-ons]radio. Ensure you apply the same string to all languages without translating it. This approach should resolve the issue by maintaining the correct logic in the plugin's code across different languages.

If this solution does not apply to your case, or if it seems outdated, we highly recommend opening a new support ticket. Additionally, please 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. For further assistance, you can also visit our support forum 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.

Tagged: 

This topic contains 4 replies, has 0 voices.

Last updated by Long Nguyen 2 months, 4 weeks ago.

Assisted by: Long Nguyen.

Author Posts
January 15, 2026 at 2:24 am #17731613

frantisekB-4

Hi again, I found out there might be a different problem now, related with translating numbers which you suggested earlier.

Is it possible that WPML is now translating array values and shows them on frontend for some plugins?

I dont know how but it may picked up some array values for some dropdown fields and now they are shown in some places on the site. I tried to remove all untranslated strings but it stays there. Weird thing is that only German language works fine-without these array numbers shown, other languages show them.

These numbers are metadata for product configuration - yith-woocommerce-product-add-ons plugin, so on product page its not visible, but once I add it with some configuration to shopping cart, its visible from now on all the way to order detail page, order email, invoice, everywhere....

January 15, 2026 at 2:45 am #17731620

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

The credentials were removed when the previous ticket was resolved. Can you please share it again so I can take a look at the issue? Your next reply is set to private to share the info.

Then please let me know which product has the meta value or how to reproduce it on your site. I will help you find a way to delete the value.

Looking forward to your reply.
Thanks

January 19, 2026 at 8:39 am #17741332

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

After investigating the issue, I found what caused the number of selections displayed on the Cart page even in the default (Slovak) language.

The string [yith-woocommerce-product-add-ons]select is the select field type, when you create a new option, it shouldn't be translated into other languages because in the plugin YITH WooCommerce Product Add-ons & Extra Options source code, they will check the value of this string and do some logic afterward.
If this string is translated into another value in a second language, the logic code doesn't work and causes the issue.

I fix the issue on your site by applying the same string to all languages. Now you can see the correct variation label on the Cart page.

Looking forward to your reply.
Thanks

Košík - RohovaLavica.sk 2026-01-19 15-29-00.jpg
String Translation ‹ RohovaLavica.sk — WordPress 2026-01-19 15-27-25.png
January 19, 2026 at 11:55 am #17742486

frantisekB-4

Hmm Im not sure I fully understand, but what about the other zeroes next to the price on the left? They shouldnt be there

January 20, 2026 at 1:30 am #17744356

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

As I suggested above, you can edit the YITH WooCommerce Product Add-ons block to find the field type you are using on the product page. In your question, it is the Radio field type.
Then, go to WPML > String Translation > Find the string name [yith-woocommerce-product-add-ons]field-type. In this case, it is [yith-woocommerce-product-add-ons]radio. Apply the same string to all languages, without translating it into another name.
Please check the attached screenshots for more details.

Looking forward to your reply.
Thanks

String Translation ‹ RohovaLavica.sk — WordPress 2026-01-20 08-25-46.png
YITH WooCommerce Product Add-ons & Extra Options ‹ RohovaLavica.sk — WordPress 2026-01-20 08-25-24.png