Skip Navigation

[Resolved] CRED Notification is sent when back-end “Purchase status changes to: Processing”

This thread is resolved. Here is a description of the problem and solution.

Problem: I have set up an email notification on a CRED Commerce form that should be sent at certain Order status changes. The email notification does not seem to respect the Order status settings, the email is sent regardless of the Order status.

Solution: This issue has been resolved in the latest version of CRED Commerce.

This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 20 replies, has 3 voices.

Last updated by Christian Cox 6 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#607714

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.

#607734

Cool, ta.

#608328

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.

#608924

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);
#629162

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.

#716377

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.