|
|
Background of the issue:
WPML is supposed to be fully comptible with Mailchimp for Woocommerce and I did translate the form ok. I'm an however unable translate Woocommerce integration on checkout here.
hidden link
it's translated ok in string translations.
hidden link
Symptoms:
The Woocommerce integration on checkout is not translating, even though it is translated correctly in string translations.
Questions:
|
|
|
Hello,
Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.
This may be because of the older version of the plugins. So please upgrade to the latest version of WPML, WooComemrce, and Elementor after a full site backup {mandatory}. Then clear all types of caches and make sure the bug exists or not.
If the problem remains, please visit WPML>>String Translation after a site backup and enable the *Look for strings while pages are rendered* option of *Auto register strings for translation* section(on the bottom of the screen). Then visit the frontend pages (Checkout) and check whether the issue exists or not.
This option will be disabled in a couple of hours automatically. But will help us to track the issue in similar cases. Refer to the following doc for more details.
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#enable-auto-register-strings
--
Thanks!
Bigul
|
|
|
I already updated everything, and I always try *Auto register strings for translation* before writing to you.
And string is registered and translated ok
hidden link
|
|
|
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 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.
Best regards,
Osama
|
|
|
Hi,
Thanks for the access details. Please check the following steps:
1- Edit the "wp-content/plugins/mailchimp-for-wp/integrations/woocommerce/class-woocommerce.php" file
2- After line 186, add the following line (Kindly check the attached screenshot)
$label = __($label, 'mailchimp-for-wp'); // Ensure translation here
3- Save the file
4- Go to WPML-> String Translation
5- Enable the "Auto register strings for translation" option
6- Visit the checkout page in the default language
7- Disable the option
8- Search for the string in String Translation
9- You should see it twice, please translate both strings
10- Clear the cache and check the translated checkout page
Best regards,
Osama
|
|
|
Thank you
Why do I have different file? line 186 is not same as yours?
hidden link
|
|
|
Hi,
I shared the wrong file. Please check the (mailchimp-for-wp/includes/integrations/class-integration.php) file.
Sorry about that.
Best regards,
Osama
|