Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not send customer email when order status is on hold #173

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

Dinamiko
Copy link
Contributor

Description

After the order payment was processed, PayPal Payments orders are first set to On-Hold and then immediately to Processing.

This triggers two emails from WooCommerce.

Customers first receive the email, that their order was received and is Processing. at the same moment, a second email is sent, saying that the order is On-Hold until the payment was received.
But this was already confirmed with the previous mail. They both arrive at virtually the same time, but first the Processing mail and then afterward the On-Hold mail.

Solution

This PR disables sending emails to the customer when status is On-Hold.

@Dinamiko Dinamiko requested a review from strangerkir June 10, 2021 09:13
Copy link
Contributor

@strangerkir strangerkir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@Dinamiko Dinamiko merged commit 29d0ddb into trunk Jun 23, 2021
@Dinamiko Dinamiko deleted the PCP-110-make-orders-skip-status-on-hold- branch June 23, 2021 08:46
@Dinamiko Dinamiko mentioned this pull request Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants