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: Custom Work
This topic contains 10 replies, has 3 voices.
Last updated by Long Nguyen 1 year, 10 months ago.
Assisted by: Long Nguyen.
Author | Posts |
---|---|
August 10, 2023 at 11:46 am #14181973 | |
mohamede-39 |
The WooCommerce Emails from new orders only sent when the user is ordering from the English Version, If he ordered from the Arabic Version, the new order email notification is not sent |
August 12, 2023 at 5:03 pm #14191965 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, According to the information I receive here is that you are reporting that the issue does not occur if you switch the theme. Does this mean that the issue might be related to custom code inside your Child Theme? Could you please try to recreate the issue on this test site? One-Click-Login: There is no FTP access to this test site, but you can use the File Manager Plugin in order to install your Child Theme for testing. Best regards |
August 13, 2023 at 9:55 am #14192807 | |
mohamede-39 |
Hello, I did install the child theme |
August 14, 2023 at 6:48 am #14194731 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Can you please try to replicate the issue on the sandbox site? Then let me know how to replicate it with clear steps. Look forward to your reply. |
August 14, 2023 at 5:32 pm #14199407 | |
mohamede-39 |
Am not sure what the steps I need to do to solve the ticket, would you clarify please? |
August 15, 2023 at 3:36 am #14200779 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I've tried to replicate the issue on the sandbox site but do not see any issue. The new order email notification is still sent to the admin user when a customer makes an order in Arabic language and your child theme is activated. Please check this screenshot hidden link Can you please share your site credentials (wp-admin and FTP) so I can check that issue there? Your next reply is set to private to share the info. ❌ IMPORTANT: Please backup your database and website before proceeding ❌ Look forward to your reply. |
August 15, 2023 at 9:47 am #14202091 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I also do not see that issue on your site. The New Order email notification is sent to the admin email address when I process the checkout in the Arabic language and the child theme Elessi activated. Please check this screenshot hidden link The email sent to the customer in the language they use on the checkout page. Look forward to your reply. |
August 15, 2023 at 12:39 pm #14203079 | |
mohamede-39 |
But in the screenshot the status is not sent |
August 16, 2023 at 3:09 am #14205837 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I understand the issue. The email function of WordPress is triggered to send but the From address is not correct so the email is not actually sent. It happens because there is a custom code in the file functions.php of your child theme that modifies the From text of the email. function katanyatrading_change_few_text( $translated_text ) { if( ICL_LANGUAGE_CODE == 'ar' ){ $translated_text = str_ireplace( 'From', 'Fromar', $translated_text ); } return $translated_text; } add_filter( 'gettext', 'katanyatrading_change_few_text' ); Please remove that custom code and recheck the issue. If you don't add this custom code, please contact your developer to get further assistance. Look forward to your reply. |
August 17, 2023 at 10:36 am #14245105 | |
mohamede-39 |
Works fine, but the translated text does not appear on arabic email New threads created by Long Nguyen and linked to this one are listed below: https://wpml.org/forums/topic/the-new-order-email-notification-is-not-sent-in-arabic/ |
August 18, 2023 at 1:28 am #14249225 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, So we can confirm that the New Order email notification is sent after the custom code is removed and the customer makes an order in the Arabic language. Thanks. |