Send notification email to merchant once change order status to processing depending on payment method.
Related information:
Related PR(s): #232
Description of change
Override Woocommerce filter for woocommerce_email_recipient_new_order which able to initiate with status as on-hold to not send order email to merchant.
Override woocommerce_order_status_processing to send notification email depend on payment method
Quality assurance
no email send to merchant on complete checkout screen
found single email send to merchant when change order status to processing
new order email to customer both status as on-hold and processing
🔧 Environments:
Tested locally by pointing OMISE_API_URL to staging-omise
Make sure setting merchant email at /wp-admin/admin.php?page=wc-settings&tab=email§ion=wc_email_new_order or /wp-admin/admin.php?page=wc-settings&tab=email to your valid email
Checkout cart with Paynow payment make sure customer email is valid and accessible
Go to customer mail box should still receive new order email
Go to merchant mail box should not receive new order email
Checkout cart with Credit Card and accessible
Go to customer mail box should still receive new order email
Go to merchant mail box should still receive new order email
Related information: Related PR(s): #232
Override Woocommerce filter for woocommerce_email_recipient_new_order which able to initiate with status as on-hold to not send order email to merchant. Override woocommerce_order_status_processing to send notification email depend on payment method
processing
🔧 Environments:
Tested locally by pointing OMISE_API_URL to staging-omise
WooCommerce: v5.7.1 WordPress: v5.8 PHP version: 7.1
✏️ Details:
Make sure setting merchant email at /wp-admin/admin.php?page=wc-settings&tab=email§ion=wc_email_new_order or /wp-admin/admin.php?page=wc-settings&tab=email to your valid email Checkout cart with Paynow payment make sure customer email is valid and accessible Go to customer mail box should still receive new order email Go to merchant mail box should not receive new order email Checkout cart with Credit Card and accessible Go to customer mail box should still receive new order email Go to merchant mail box should still receive new order email
Impact of the change No
Priority of change Normal
Additional Notes No