Skip Navigation

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

Last updated by Waqas Bin Hasan 1 year, 3 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
August 22, 2023 at 1:09 am #14267289

federicoB-41

I am trying to: I am deleting information from the original English page (clearing fields of data) but that information still remains on translated pages even after I update translated page using WPML editor.

For example:
1. Remove 3 months fee from the English version
2. Update Italian translation using WPML Classic Editor
3. 3 months fee will still remain on the Italian page

Link to a page where the issue can be seen:
We replicated the same issue on the staging version of our website which is the same as our main website.
English page:
Italian page: hidden link

If you scroll to the "Total course costs" section in English, you will see that fees start from 6 months. However, in Italian, it starts from 3 months.

I expected to see: Fees in Italian start from 6 months.

Instead, I got: Old 3 months fees that were removed from the English page are still on the Italian page.

I hope it explains the situation. Please let me know if you need additional information. Thank you!

Screenshot 2023-08-22 at 10.03.07.png
Screenshot 2023-08-22 at 10.04.13.png
Screenshot 2023-08-22 at 10.02.18.png
August 22, 2023 at 11:18 am #14270517

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Can you please explain where are these fields coming from? I mean from a relevant plugin or custom added fields.

Also can you share these custom fields' translation settings? See https://wpml.org/documentation/getting-started-guide/translating-custom-fields/ for details.

Further, can you try updating WPML plugins to the latest and check again also? Remember to take full backup of site and database before proceeding!!

Regards.

August 23, 2023 at 9:50 am #14276973

federicoB-41

Hello Waqas! Thank you very much for your response.

We added those fields using JetEngine. More specifically, JetEngine -> Metaboxes.

Please see attached screenshots for clarity. Also, you can see custom field translation settings on one of the screenshots.

We have WPML 4.6.4 installed, and I see that 4.6.5 is the latest one. I will try to update the WPML later, but I believe it is only a minor update that won't have an effect on this issue. Still, I hope to be wrong!

Thank you very much once again for your help! Looking forward to hearing from you.

Screenshot 2023-08-23 at 18.46.22.png
Screenshot 2023-08-23 at 18.46.42.png
Screenshot 2023-08-23 at 18.46.01.png
August 23, 2023 at 10:31 am #14277389

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

Yes please check with latest WPML versions, those are not minor updates but also contain fixes and improvements with several reported fixes.

On the other hand, can you try with a new page or post while changing these fields translation settings to copy and copy once? See "2. How to Translate Meta Boxes & Meta Fields" hidden link in the JetEngine guide.

Usually, translate works like where you need these fields always, while other options (i.e. Copy once) has a disconnected tendency and gives you the liberty of handling fields individually on translations (after first translation).

Please let me know if any of these help or I'll try my best to help you further on the matter.

August 24, 2023 at 2:30 am #14281079

federicoB-41

Hello again Waqas!

I updated the WPML version to the latest one and changed the "Courses" custom field to "Copy Once", and then added a new school with a translation. Unfortunately, both ways did not help - 3 months fee still remains intact on a translated page.

Is there anything else I can try? Please let me know. And thank you very much for your help!

August 24, 2023 at 7:55 am #14282423

Dražen
Supporter

Languages: English (English )

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

Hi there,

Waqas is off today, so I am taking care of this ticket, hope that is OK. 🙂

Can you please try using COPY for those exact fields, since copy-once will sync only on creating, and translate will not sync it all?

Once you set it to COPY; please also try it on a new page, since it could be translation settings for that page were somehow not changed.

Let us know how it goes.

Regards,
Drazen

August 24, 2023 at 9:42 am #14283243

federicoB-41

Hello Drazen!

We had a "Copy" set before, and I changed it to "Copy once" only after Waqas recommended me to do so. I created a new page right after updating the plugin while "Copy" was in place, and did not see any difference - the issue is still there.

August 25, 2023 at 7:32 am #14289417

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation. My apologies for being absent due to health issue.

I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss.

August 30, 2023 at 6:05 am #14310075

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the details. I am working on it and 'll get back to you accordingly.

P.S.: I've set your recent message to private because it contains sensitive (access) information. Please do not share such information in public messages and ask to enable private message.

August 30, 2023 at 12:54 pm #14313785

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I am trying to check the issue with minimal setup possible. And I noticed that when I deactivate "Simple Custom CSS and JS PRO" plugin, that section displaying the cost options isn't displayed.

I am not sure which custom code you're using to display that. Can you please point me to the relevant code?

Additionally, if you can keep only the most necessary plugins active (minimal setup) while deactivate all others, this 'll help me investigating little faster.

Please let me know.

September 6, 2023 at 11:35 pm #14355295

federicoB-41

Hi Waqas! Sorry for getting back to you so late on this matter.

We found out that this code is responsible for showing the list of fees: hidden link

Please check and let me know if you found the issue. Thanks!

September 7, 2023 at 7:52 am #14356607

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the details. I'll check soon and 'll get back to you accordingly.

September 7, 2023 at 1:01 pm #14359717

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I've tested it thoroughly and have discussed with the team. Unfortunately that's not possible with numbers. If the field is empty it won't appear in the translation editor.

So to deal with this, you 'll have to manually edit the translation:

- Edit the post in default language.
- Remove that number value from the field.
- Save the post.
- Instead of updating translation through CTE, switch to other language from top admin bar.
- Remove the value from translated version of the post.
- Save.

In all other cases, where you change other text based content, use CTE to update the translations.

September 12, 2023 at 11:58 am #14383349

federicoB-41

Hello Waqas! Thanks for your reply.

Yes, we did that - removed old fees from other translations using WordPress editor by switching to another language from the top admin bar. It works, but when we use CTE later again and save changes, old fees will be back again on the translated page. You can reproduce this behavior too:
1. Delete numbers from a field in English
2. Delete numbers in the way you described above
3. Edit translation using CTE after it
4. Old numbers will be back on the translated page.

Thanks for your help!

September 12, 2023 at 1:17 pm #14384133

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the update and I understand the problem.

Unfortunately there's no easy solution for that. However, since you're already doing custom coding to list these out, you can put some kind of identifier in the field (instead of emptying it, i.e. -1), then translate it the same. And in your code add a check to display/hide it accordingly.

Would that make sense?

Here's WPML's coding API, in case if you want to dig deeper: https://wpml.org/documentation/support/wpml-coding-api/.