This thread is resolved. Here is a description of the problem and solution.
Problem:
Emails generated by the plugin "Custom User Registration Fields for WooCommerce" that are triggered by an admin action (approve or disapprove the user account) are sent in the admin language instead of the user language. So here the user receives an email in FR even if he registered in NL.
Solution:
There is no simple solution here. You should push the plugin author to join our Go Global program and make his plugin compatible.
https://wpml.org/documentation/support/go-global-program/
Having said that we were able to make it work by modifying the plugin's code. Please follow the instructions in the link below.
Documentation/Workaround:
https://wpml.org/forums/topic/compatibility-issue-between-the-wpml-plugin-and-the-custom-user-registration-fields-for-woocommerce/page/2/#post-14149545
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: Compatibility
This topic contains 24 replies, has 2 voices.
Last updated by Nicolas V. 1 year, 5 months ago.
Assisted by: Nicolas V..
Author | Posts |
---|---|
July 10, 2023 at 3:18 pm | |
mohammedS-28 |
I have a multilingual website with English set as the default language and Dutch as the secondary language. The English version of the site is accessible at jbfoods.eu, while the Dutch version is available at jbfoods.eu/nl/. The "Custom User Registration Fields for WooCommerce" plugin allows me to add additional fields to the user registration form in WooCommerce. However, when using WPML to translate the registration form fields, I encounter the following problem: |
July 10, 2023 at 4:30 pm | |
July 11, 2023 at 12:49 am #14009747 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, I will continue with your ticket as I'm aware of the issue. Could you please reshare your credentials because they didn't get copied in the ticket. I have reactivated the private field for your next answer. Thanks, |
July 11, 2023 at 2:11 am | |
July 11, 2023 at 12:39 pm #14014855 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, Thanks for the access. Yesterday we were on the right path. But it seems that the plugin register two strings under different domains: "addify_reg" which seems to be the default text and "admin_texts_afreg_pending_approval_email_text" which is the admin text domain (admin texts are texts you can edit in the settings for your plugin. So please, for each string of text you have for those emails repeat the following process: |
July 12, 2023 at 2:41 pm #14026027 | |
mohammedS-28 |
Hi Nico, thank you for your assistance, the auto-reply mail is working all fine now, it is translated into dutch, but I'm having a problem with the approved or rejected mail as they are always being sent in English, I have translated them from strings, yet whenever approved or rejected it's in English, I want dutch users to be notified in dutch. |
July 13, 2023 at 12:26 am #14028455 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, Did you change the password? I couldn't login to check those other emails.
I'll reactivate the private field for your next answer. |
July 14, 2023 at 4:35 am | |
July 14, 2023 at 3:01 pm #14040541 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, I think I found the issue here. I did some tests and it seems that because the admin is changing the status (approved /disapproved), the email is triggered in the admin language. As you can see on the screenshot. PS: I changed my admin language in "Users > Profile > Language". That reminds me of a similar issue with WooCommerce default emails where changing the status of an order in the admin would send the email notification in the admin language: https://wpml.org/errata/woocommerce-e-mails-are-always-sent-in-default-language-for-any-admin-order-status-change/ I'm not sure that's the same issue here but could you please contact the plugin author and see if they can provide the option key that way we can try to adapt the workaround provided in this documentation? They already worked on WPML compatibility so they should be able to help you out with this. |
July 15, 2023 at 9:55 am #14042273 | |
mohammedS-28 |
Hi Nico, thank you for figuring it out! sure I will reach out to the plugin author regarding the same and ask them for the option key! will get back to you as soon as I get a response from them. regards |
July 17, 2023 at 2:43 pm #14050681 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, I'll wait for your feedback then. By the way, I forgot to attach the screenshot in my previous answer. - First email (at the bottom): I approved first with my admin account in EN and received the confirmation email in English. |
July 18, 2023 at 3:31 am #14054113 | |
mohammedS-28 |
Hi Nico, this is what they've replied me with: Hi! Can you please let me know if you want to trigger an email in which the user is registered? is it? Additionally please let us know which plugin you are using for translation. I hope I made my points clear to you if still there is something unclear to you, please feel free to ask, it would be my pleasure to answer your queries. Thank you! |
July 18, 2023 at 1:05 pm #14059469 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, Ok, you can share with them my last answer where I share my findings. But in short, when you make a change in the admin that triggers an email (like approving or disapproving an account), the client will receive the email in your admin language instead of the language they registered in. |
July 20, 2023 at 2:20 pm #14073341 | |
mohammedS-28 |
Hey there Nico, Just wanted to update you on the issue, Sania (plugin Support Engineer) said she will be investigating the site for the needful. I will let you know as soon as I get an update from her thank you for your patience, |
July 21, 2023 at 11:31 am #14079453 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hi Mohammed, OK, I will keep this ticket open waiting for your feedback. Have a great weekend, |