Skip Navigation

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

Problem:
You are trying to translate the VAT label in the WooCommerce checkout using WPML. Although the translations are available in the string translation section and are translated, they do not appear on the checkout page.
Solution:
First, apply the workaround described on the errata page for issues related to missing translations due to WordPress 6.7 MO files not being loaded. You can find the details here: WordPress 6.7 MO files not loaded.
Next, ensure that your theme and any plugins related to the VAT string are properly scanned for translations. This can be done under WPML -> Theme and plugins localization.
Then, enable auto-registering of strings as described in this guide: Finding strings that don't appear on the string translation page.
Finally, use the WPML String Translation to translate all instances of the VAT string.

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. If needed, please open a new support ticket at WPML support forum for further assistance.

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 2 replies, has 0 voices.

Last updated by Carlos Rojas 1 day, 21 hours ago.

Assisted by: Carlos Rojas.

Author Posts
November 25, 2024 at 1:40 pm #16440007

tiffanyv-2

Background of the issue:
I am trying to translate the VAT label in the WooCommerce checkout using WPML. The translations are available in the string translation section and are translated but do not show in the checkout page.

Symptoms:
The VAT label does not translate in the checkout and displays as 'VAT' for all languages.

Questions:
Why are the VAT translations not appearing in the checkout?
How can I ensure the VAT label is translated correctly in WooCommerce checkout?

November 25, 2024 at 2:23 pm #16440219

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting us

Please apply the workaround described in this errata page: https://wpml.org/errata/wordpress-6-7-mo-files-not-loaded-and-leading-to-missing-translations-on-front-end/ and double-check if the issue disappeared.

Regards,
Carlos

November 25, 2024 at 3:17 pm #16440793

tiffanyv-2

No, that does not fix the issue, unfortunately. I have a staging environment set up in case you need to check some things.

November 25, 2024 at 4:47 pm #16441329

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you for your message.

Yes, I would like to take a look at the staging site configuration. I have set your next message private so you can securely share the access credentials.

November 25, 2024 at 4:57 pm #16441381

tiffanyv-2

Thank you in advance!

November 25, 2024 at 5:26 pm #16441464

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thanks to you for sharing the credentials.

These are the steps I followed:
- I went to WPML -> Theme and plugins localization -> Scanned the theme and any plugin that might be related to the VAT string
- Then I followed the steps described in this guide: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#enable-auto-register-strings
- In WPML -> String Translation I found many instances of the string VAT and translated them all: hidden link
- Now I can see the translation correctly on the front end

Can you confirm that the issue was solved?

November 26, 2024 at 9:23 am #16443541

tiffanyv-2

Yes this fixed the issue, thank you so much!

November 26, 2024 at 10:22 am #16443949

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Great!

Please don't hesitate to contact us if you need our help in the future with WPML 🙂