[Resolved] Woocommerce Gift Card received email is not translated
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where the WooCommerce Gift Cards plugin sends notification emails in Greek regardless of the site language from which the gift card was purchased. Previously, a snippet was used to solve this, but it now causes a fatal error. Solution: We recommended updating the functions.php file with the following code:
We asked the client to verify if the last email is translated correctly by checking their WPML plugin log.
Please note that this solution might be outdated or not applicable to your specific case. If this solution does not resolve your issue, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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.
The snippet is no more causing problems in our site. Almost al the strings appear corectly. I have made a test order in the live site and this strings are showen in Greek where the gift card is from the English site. hidden link. This strings are prodused by the plugin and not in the woocommerce email settings.
Please scan the plugin via WPML-> Theme and Plugin Localization. Then, go to String Translation, search for these strings, and make sure that they are translated correctly.
I translated the strings from english to greek, but in your sandbox I was not able to recreate my issue. In the live site all this strings appear in greek, even if I have made the order from the greek or the english site.
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.
I can provide you with demo site credentials, but you sould only take a copy of the site to debug localy since we are facing problems with elementor too in this site and we have given access to them to make changes so you may conflict with them. Are you ok with that? If so please activate hidden message again.
Yes, no problem. There is one more test you can run on your site before sharing the access details:
Following these steps, please check if the issue persists in a minimal environment.
1- Deactivate all the plugins except those active ones on the sandbox site.
2- Switch to a WordPress default theme like Twenty Twenty-one.
3- Delete one of the problematic strings, for example, the Amount string.
4- Scan the plugin via WPML-> Theme and Plugin Localization
5- Translate the string
6- Clear the site's cache
7- Place an order
If the issue is gone, activate them one by one to see which one is causing an interaction issue.
❌ Please backup your database before performing the above test ❌