Skip Navigation

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

Problem:

The size chart value for products is not translated correctly in Kadence theme.

Solution:

The issue can be resolved by setting the custom field to translate. This can be done by:

1. Going to WPML → Settings → Custom XML Configuration.
2. Adding the following configuration:

    <wpml-config>
    <custom-fields>
       <custom-field action="translate">_kt_woo_size_chart_assign</custom-field>
      </custom-fields>
    </wpml-config>
    

3. Going to your product in other languages and selecting the appropriate size chart.

Relevant Documentation:

Further information can be found in this WPML documentation: https://wpml.org/documentation/support/language-configuration-files/#custom-fields.

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 5 replies, has 3 voices.

Last updated by samanthaB-3 1 year, 5 months ago.

Assisted by: Ahmed Mohammed.

Author Posts
June 21, 2023 at 10:22 am #13866649

samanthaB-3

Tell us what you are trying to do?
Have the correct language display on the front end of the product page
Is there any documentation that you are following?

Is there a similar example that we can see?
hidden link
hidden link
What is the link to your site?
hidden link

wpml chart2.png
wpml chart.png
June 21, 2023 at 8:49 pm #13871729

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your contact.

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

Please try to enable the option "Look for strings while pages are rendered" in WPML -> String Translation. Then visit that page in which the text is located and go back to the String Translation, refresh the page and check if you'll be able to locate the string now. (Please don't forget to uncheck the option "Look for strings while pages are rendered" once you're done).

Keep us posted about your results. Thank you.

Kind regards,
Mateus.

June 21, 2023 at 9:38 pm #13872065

samanthaB-3

Hi Mateus

Thanks for your reply. I have tried the string options about zillion times but that is not working.

Secondly, see image this is not the way it should work the translation, it is more setup like a post or page. I have enclosed an english and dutch translation.

English is fine but any other languages are all displayed in german for some reason . Deleting German they end up all in French.

Kind regards,

Samantha

sizecharteng.jpg
sizechartdutch.jpg
June 22, 2023 at 12:44 pm #13876775

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi Samantha,

It looks like the Size Chart text is entered per product according to the shared screenshot and it's not a string that can be translated via the String Translation page.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private, meaning only you and I can see and access it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved, I will delete the local site. Let me know if this is ok with you.

IMPORTANT

- Please backup site files and database before providing us access.
- If you do not see the wp-admin/FTP fields, your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box.

The private box looks like this:
hidden link

Looking forward to hearing back from you.

June 22, 2023 at 5:15 pm #13879927

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for providing the login details.

The size chart value is saved in a custom field for the products. I have fixed the issue by setting the custom field to translate as explained here: https://wpml.org/documentation/support/language-configuration-files/#custom-fields.

So to fix the issue on your website, please follow these steps:

1. Go to WPML → Settings → Custom XML Configuration.
2. Add the following:

<wpml-config>
<custom-fields>
   <custom-field action="translate">_kt_woo_size_chart_assign</custom-field>
  </custom-fields>
</wpml-config>

3. Go to your product in other languages and select the appropriate size chart as shown in the attached screenshot.

Please try that and let us know how it goes.

20230622 at 20.13.45.png