Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Mateus Getulio 1 year, 10 months ago.

Assisted by: Mateus Getulio.

Author Posts
June 23, 2022 at 3:42 pm #11531629

lukasM-7

Hello, I have problem on our eshop. When i try to manual send new order notification I get email twice. I try to disable all plugins instead of WPML and woocoommerce and also try a default theme. but nothing helped. Everytime I get a email twice. I have latest woocommerce, latest wordpress and latest wpml plugins. I have this problem for long time.

June 24, 2022 at 5:41 pm #11539903

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Thank you for contacting our support forum!

This is a known issue, that our developers are already working on it. There is a fixing code, which will be implemented in WCML 5.1.0 - but unfortunately, we don't have an ETA for its releasing.

But you can implement this fix on your WCML. Please follow these steps:

- Make sure to have a backup of the site before proceeding
- Access your files and go to wp-content/plugins/woocommerce-multilincgual/inc
- Open the file 'class-wcml-emails.php' and find this line:

add_filter( 'woocommerce_new_order_email_allows_resend', Fns::always( true ) );

- Exchange it for these new ones:

add_filter( 'woocommerce_new_order_email_allows_resend', function() use ( $recipients ) {
static $numberOfAllowedResend;

if ( null === $numberOfAllowedResend ) {
$numberOfAllowedResend = count( $recipients );
} else {
$numberOfAllowedResend--;
}

return (bool) $numberOfAllowedResend;
}, 20 );

Save, check if the problem persists and please let us know the results. In the meantime, I'll add your ticket to the threads list of this issue. We're looking forward to your reply. Thanks!

Yours sincerely,
Mateus.

The topic ‘[Closed] When i try to place manual order send new order notification email twice’ is closed to new replies.