I've escalated the notification trigger issue to my 2nd tier support team for additional investigation. I can replicate the same behavior on my own site, so we may have a bug here. I will update you as soon as I have more information to share.
Okay thanks, I am able to replicate this issue on my own local testing environment with my own plugins and data so we may have a bug here. I have escalated the problem to my 2nd tier support team for additional investigation, and I will update you as soon as I have some additional information to share.
It appears that there is a bug in the Order status change notification system in CRED Commerce right now that does not respect the Order status selected in the email notification settings. This is causing the notifications to be sent whenever the Order status changes, regardless of the Order status. Our 2nd tier support team does not have an easy code fix for this issue, so I apologize but I'm not able to offer you a quick fix here. Their advice is to use WooCommerce emails instead to respond to Order status change events, and you can customize those emails with PHP using WooCommerce's API as described here:
hidden link
hidden link
To access the CPT created by CRED Commerce and its custom fields, you can use the following code in an email template:
$order_id = $order->id; // you may have to edit this to get the order ID based on how your email is setup
$cpt_id = get_post_meta($order_id, '_cred_post_id', true);
$field1 = get_post_meta($cpt_id, 'wpcf-field1slug', true); // change 'field1slug' to match the slug of any custom field
$field2 = get_post_meta($cpt_id, 'wpcf-field2slug', true);
Hi just a quick update to let you know that our developers plan to include a fix for this issue in the next stable release of the CRED plugin. We have published an erratum about this issue, but no patch is available yet: https://toolset.com/errata/cred-commerce-emails-sent-order-status-changes-instead-specific-order-status/
I will update you here when the new CRED version is released with the fix. Thank you for your patience.
Hello, you can now find the next stable release, CRED 1.9.6, available for download now at https://toolset.com/account/downloads. Please install the update and let me know if the notification timing issue is not resolved. Thank you for your patience.