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

Send gift notification on payment instead of on completion #16

Open
Jon007 opened this issue Oct 20, 2017 · 0 comments
Open

Send gift notification on payment instead of on completion #16

Jon007 opened this issue Oct 20, 2017 · 0 comments

Comments

@Jon007
Copy link
Contributor

Jon007 commented Oct 20, 2017

Currently gift notification is only sent on completion of order.

Orders have to be moved manually to completion status, depending on your process this may be after despatch or after confirmation of delivery.

The requirement of a manual step means delay in sending the gift email, especially if the order also includes physical products which may require work to despatch/backorder etc.

Hook should be:
add_action( 'woocommerce_order_status_pending_to_processing_notification', ...
..
send email
...
bonus points: if there are no physical products in the order, automatically move to complete after sending the gift notification (warning, that may generate additional email)

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

No branches or pull requests

1 participant