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.
This topic contains 13 replies, has 2 voices.
Last updated by francescG-6 4 years, 11 months ago.
Assisted by: Marcos Vinicios Barreto.
Author | Posts |
---|---|
May 6, 2020 at 6:28 am #6067037 | |
francescG-6 |
Hi, I want to translate the emails I send to my customers (the woocommerce automatic emails like "your order has been sent thanks for buying ...) I designed these emails with Kadence WooCommerce Email Designer plugin. In this forum (in the spanish forum) I found this article: who talks about add some code (???) Can you help me? Thankss Regards Kiko |
May 7, 2020 at 4:57 pm #6082747 | |
Marcos Vinicios Barreto |
Hello Kiko, Thank you for contacting WPML Support. According the mentioned ticket you need to paste the snippet of code below to the functions.php file of your active theme, here is the code: add_filter( 'woocommerce_email_format_string', function ($string, $email) { $string1 = apply_filters( 'wpml_translate_single_string', $string, 'admin_texts_woocommerce_customer_completed_order_settings', '[woocommerce_customer_completed_order_settings]heading' ); $string2 = apply_filters( 'wpml_translate_single_string', $string, 'admin_texts_woocommerce_customer_completed_order_settings', '[woocommerce_customer_completed_order_settings]subject' ); return $string; }, 21, 2); The same request was already made in this ticket: https://wpml.org/forums/topic/cant-translate-kadence-woocommerce-email-designer-string/ so I recommend to give a detailed look on it. If you still face issues after following the provided ticket instructions, please, let me know and we'll proceed with a detailed look for your particular case, have a nice day. |
May 8, 2020 at 10:55 am #6087903 | |
francescG-6 |
Hello, I am very lost The problem is I don't understand what I have to do exactly I'm sorry I'm lost Regards |
May 8, 2020 at 5:47 pm #6090861 | |
Marcos Vinicios Barreto |
Hello, Thank you for the updates. I would need to check your settings myself before providing you with a more accurate reply and step by step instructions on how to proceed, for that, please consider: I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Our Debugging Procedures I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site. Privacy and Security Policy We have strict policies regarding privacy and access to your information. Please see: **IMPORTANT** - Please make a backup of site files and database before providing us access. Please, let me know if you need any additional details. Have a nice day. |
May 10, 2020 at 10:01 am #6097627 | |
francescG-6 |
Hi again in the 2nd point: I said: But the word: "Format" doesn't translate to formato Format is a name (nom) that I have created in product atributes, it's strange because the values (valors) they are been translated Thanks |
May 10, 2020 at 10:53 am #6097787 | |
francescG-6 |
Hi again again Sorry x1000 Thanks Kiko |
May 12, 2020 at 2:41 pm #6113977 | |
Marcos Vinicios Barreto |
Hello Kiko, Thank you for the provided details. Let's proceed with an issue at a time, first we need to solve the WooCommerce emails issues, in order to investigate this issue further I would need to make some changes for your website, things such as disable plugins, entering custom codes and so on. Is it a test site where I can make changes or do you prefer to migrate it to our test server for the debugging process? Please, let me know, have a nice day. |
May 12, 2020 at 8:07 pm #6116595 | |
francescG-6 |
Hi, I prefer if you migrate the web to your test server for 2 reasons: In addition to these, I have been able to solve the second issue (translate format to formato) Thanks for you help Regards Kiko |
May 13, 2020 at 12:20 am #6117313 | |
Marcos Vinicios Barreto |
Hello, Please, take a look at my previous private reply and let me know when the migration process is done. Thanks. |
May 13, 2020 at 2:50 pm #6123475 | |
francescG-6 |
Hi I did it Thankssss |
May 14, 2020 at 7:04 pm #6135759 | |
Marcos Vinicios Barreto |
Hello Kiko, Thank you for the updates. I took a look at this issue in the migrated website, and here is how to proceed: 1 - Your email content should be entered at your WordPress Dashboard > WooCommerce > Email Customizer in order to use the email templates provided by Kadence instead of using the default WooCommerce content; 2 - Then you can translate the default fields such as (Subject, Heading, Additional Content) from your WordPress Dashboard > WPML > String Translation from the text domain 'admin_texts_woocommerce_customer_*' for example 'admin_texts_woocommerce_customer_completed_order_settings'; Note: If you still see any missing field provided by WooCommerce then you can register it following these steps: https://wpml.org/documentation/getting-started-guide/translating-theme-options/ you should be able to find all these fields named as 'woocommerce_customer_*' 3 - All the other extra fields added by Kadence such as (Subtitle, Body, etc) should be translated at your WordPress Dashboard > WPML > String Translation from the 'admin_texts_kt_woomail' text domain; I tested it in the migrated website and it works properly, If I make a test purchase in the catalan language I get a catalan email, if in spanish I get a spanish email, which should be the expected behavior. Please, let me know if it helps to solve your issue, have a nice day. |
May 15, 2020 at 9:43 am #6139683 | |
francescG-6 |
Hi, 100000000000000xthanks It's solved Now it's running perfectly I think wpml support is free, but if i have to pay anything for your help i can undestand it, tell me. Muito obrigado pela sua ajuda, eu souzinho nao teria sido capaz de arrumar este negocio |
May 15, 2020 at 1:08 pm #6141103 | |
Marcos Vinicios Barreto |
Hello, Thank you for the updates, I am glad it works now. Please, don't hesitate in contacting us whenever you need our assistance, have a nice day. |
May 18, 2020 at 8:12 am #6155607 | |
francescG-6 |
My issue is resolved now. Thank you! |