Skip Navigation

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

Problem:
The client is experiencing an issue where the labels for the Custom Fields for Variations by Iconic plugin are showing up in the original language on all translated versions of the product pages, although the data fields are translated correctly.
Solution:
If you're experiencing this issue, we recommend you try the following steps:
1. Navigate to the custom post type page for your product body layout.
2. Switch the language to your desired translation (e.g., English or Danish).
3. Edit the translated product body template.
4. Add the translated group shortcode.
5. Update the translated template.
6. Edit the product in the default language.
7. Update it.
8. Switch the language from the top admin bar.
9. Fill in the group field data for the translated version.
10. Update the translated product.
After completing these steps, please check the product on the front end to see if the labels are now correctly displayed in the translated language.
If this solution doesn't look relevant to your issue, please open a new support ticket with us.

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

Last updated by petterH 1 year, 3 months ago.

Assisted by: Osama Mersal.

Author Posts
December 18, 2023 at 11:23 am #15083471

petterH

Tell us what you are trying to do?
Hi, I had help recently resolving an issue with the plugin Custom Fields for Variations by Iconic. But now another issue has come up. We translated the labels manually and updated the products to make the data fields show up and it worked fine. Now however the labels show up in the original language on all languages. The data fields show up translated though. Do you know how we could solve this?

What is the link to your site?
hidden link

Screenshot_1.jpg
December 18, 2023 at 4:59 pm #15086413

Laura
Supporter

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hi,

thanks for contacting us.

Please see https://wpml.org/faq/why-arent-my-translated-strings-showing-up-on-the-front-end-of-my-site/

December 19, 2023 at 5:47 am #15088317

petterH

Hi Laura,

Unfortunately the strings created in the Custom fields for variations plugin are not found by scanning the plugin for strings. I have translated the fields manually by switching to English, and the fields are translated on the back-end, but still shows the Swedish label on the front-end. I believe this worked when we first resolved the issue of the fields not being displayed at all, but I might have missed that the labels were shown in the wrong language when we got it to work.

Screenshot_1.jpg
Skärmbild 2023-12-19 064355.png
December 19, 2023 at 1:02 pm #15092769

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

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

Hi,

I'm Osama from WPML forums support. I'll be glad to help you today.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

December 19, 2023 at 3:46 pm #15094605

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

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

Hi,

Thanks for the access details. Please check the following steps:

1- Go to this page (hidden link)
2- Switch the language to English/Danish
3- Edit the translated product body template
4- Add the translated group shortcode
5- Update the translated template
6- Edit the product in the default language
7- Update it
8- Switch the language from the top admin bar
9- Fill the group field data
10- Update the translated product

After that, please check the product in the front end. (hidden link)

Best regards,
Osama

December 19, 2023 at 4:25 pm #15095159

petterH

I tried this on the test site and it worked. However, when I tried it on the production site (matting.se) the fields went missing altogether... I am not sure what could be different there. One thing with the steps though... I can't edit the data fields on the translated products because the fields are greyed out, it wants me to use the Woocommerce multilingual editor. But I can edit the Field Group in English. And it is that shortcode I added to the body template with nothing showing up on the front end.

Skärmbild 2023-12-19 172316.png
Skärmbild 2023-12-19 172338.png
December 19, 2023 at 4:29 pm #15095225

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

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

Hi,

Please edit the English product, go to the Variations tab, and click "Expand". After that, scroll down to the field group fields to add the translated data.

Best regards,
Osama

2023-12-19_18-27-32.jpg
December 19, 2023 at 4:34 pm #15095295

petterH

I see...
Yes it works 👍
But does it mean we have to edit all products manually for all languages?

December 19, 2023 at 4:36 pm #15095307

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

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

Hi,

It's great to hear that the issue is fixed 🙂. I'm afraid that is the workaround for this case. You can switch to manual translation for your products. Kindly check this guide. (https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/)

Best regards,
Osama

December 19, 2023 at 4:53 pm #15095435

petterH

Ok thanks for helping again. I will inform the devs at Iconic and see if they can update their plugin for better compatibility 👍

December 21, 2023 at 7:34 am #15107021

petterH

Hi,
I know we marked this as resolved, but I got a reply from the people at Iconic that there might be a solution to access/connect the translated fields from the database, since they have been translated and are stored somewhere. Since the data fields appear in the correct language, but the labels are shown in the original language. Just wanted to give this one last shot, because it would mean a huge load of work for the client to manually populate all variations...

See Iconic's answer below:

However, since we store custom fields values in the product's meta (post meta) WPML, which is the common practice within WordPress to store extra field data, there's a good chance WPML might have a solution.

Kindly reach out to WPML for further assistance on this matter.

I hope this helps. Kindly let us know if you have further questions.

Screenshot_1.jpg