Home›Support›English Support›[Resolved] compatibility with "Custom User Registration Fields for WooCommerce
[Resolved] compatibility with "Custom User Registration Fields for WooCommerce
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.
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:
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:
- Go to "WPML > String Translation"
- Scroll down and click on "Translate texts admin" at the bottom left
- Search for the string, select it and click on "Add to String Translation"
- Then go back to "String Translation" and translate it
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.
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.
- I approved first with my admin account in EN and received the confirmation email in English.
- Then I approved the account with my admin account in NL and received the Dutch email
PS: I changed my admin language in "Users > Profile > Language".
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.
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.
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.
- Second email (at the top): I approved the account with my admin account in NL and received the Dutch email
Hi!
Hope you had a great weekend!
Our plugin work with the WooCommerce & WordPress default behavior & hooks.
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.
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.
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
OK, I will keep this ticket open waiting for your feedback.
Have a great weekend,
Nico
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.