Home›Support›English Support›[Resolved] Translate my Woocommerce ACF (php registered) webshop with WPML auto translations.
[Resolved] Translate my Woocommerce ACF (php registered) webshop with WPML auto translations.
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is unable to get WPML to recognize and translate flexible fields in a WooCommerce webshop using Advanced Custom Fields (ACF) registered via PHP. Additionally, when attempting to use the WPML translation editor, an error occurs stating 'File size limit exceeded' and 'unable to retrieve job content'. Solution: We recommend the following steps to resolve the issues: 1. Install a specific plugin from this link and follow its usage documentation to convert the field groups. 2. Verify that all groups are imported correctly by checking here. 3. Edit each group to ensure the translation preferences are set correctly. 4. Export the groups as JSON after toggling all groups at this page. 5. Delete the PHP code for the field groups once confirmed working. 6. To address the translation editor issue, exclude field choices and labels from post-jobs by adding the following line to your wp-config.php:
Then, update the page in the default language and translate it.
If these steps do not resolve your issue or if the solution seems outdated or irrelevant to your 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. Additionally, please feel free to open a new support ticket with us for further assistance 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.
Background of the issue:
I have an existing WooCommerce webshop with the following plugins installed: Advanced Custom Fields PRO, Advanced Custom Fields Multilingual, WPML Multilingual CMS, and WPML String Translation. Some of the ACF fields are programmed via PHP as per the reference: hidden link. I am trying to translate my WooCommerce ACF (PHP registered) webshop with WPML auto translations. The site is currently under development.
Questions:
How can I get WPML to recognize and translate my flexible fields?
What steps should I follow to ensure all ACF fields are translated correctly?
Thanks for your answer. I only don't really understand how this workaround would help me in this situation.
Currently my ACF fields are not displaying in the custom fields section in my WordPress account because they're built with PHP.
How could I make the transition to using this the fastest? Which steps do I have to take from my current situation? It sounds like a lot of work to get this working on a short notice.
Please log in to this hidden link">sandbox site and add your fields code. After that, please let me know how to reproduce the issue so I can consult our compatibility team if we have another workaround.
Thanks for importing the code to the sandbox site. Please check the following steps:
1- Install this hidden link">plugin
2- Follow its Usage doc to convert the field groups
3- Go hidden link">here and check if all groups are imported correctly
4- Edit each group to see if the translation preferences are correct
5- Go hidden link">here, toggle all group,s and export as JSON
If everything works correctly, you would need to delete the PHP code for the field groups.
Kindly check the result on the sandbox site and let me know if it works as expected.
Great thanks this works! It looks like WPML is recognising my fields and counts the words right now.
Only problem I get now, if I want to start translating using the WPML translation editor it gives me an error with 'File size limit exceeded', 'unable to retrieve job content'.
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 need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why 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.
When I make a minor change (nonetheless if it is on the Recnition theme or Twenty-one theme) and try to translate, I don't get to the translation screenl.
Also if I'm in my translation management and try to cancel any Jobs or remove translations nothing is happening but it is only showing errors. Or it says 'The job has been cancelled' while its not being removed.
I have the feeling it is still quite buggy and I'm not getting to the point where I can start auto translating certain pages (thats the reason I purchased the plugin).
Thanks for your update. I created a test site on our testing server to debug the issue further. (hidden link)
On this test site, I updated all the plugins and WordPress core. After that, I changed the translation preferences for the group fields to Same Fields Across Languages to avoid any unwanted content in the translation editor.
However, none of the above didn't fix the issue, so I'll consult our 2nd tier support team and update you as soon as I get their reply.