• Resolved isaakgeo

    (@isaakgeo)


    Hello,

    It is very often that a customer chooses to pay via Direct Bank Transfer. In that case the order remains on hold until the money transfer is verified by the shop owner. That results in many emails being sent to people who have actually completed their order.

    Is there a way to stop sending emails when order status in “On Hold”?

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support CartFlows Team

    (@cartflows)

    Hello @isaakgeo,

    Thank you for reaching out to us.
    ?
    Plugin marks the order as recovered when order status is ‘Completed’ or ‘Processing’. Else it will send the emails.
    ?
    But you can stop sending the emails to users whose order status is ‘on hold’.
    ?
    You just need to enter the following filter to your function.php file of the child theme.
    ?
    Here is the Custom Code:
    ?
    ?add_filter( ‘woo_ca_exclude_on_hold_order_from_tracking’, ‘__return_true’ );?
    ?
    ?Let us know how it goes.

    Thread Starter isaakgeo

    (@isaakgeo)

    Hello and thanks for the reply.

    I had already found this solution in another post but unfortunately it didn’t work.

    Can we find out why or try something else?

    Thread Starter isaakgeo

    (@isaakgeo)

    In file modules/class-cartflows-ca-cart-abandonment i see the following code:

    $acceptable_order_statuses = array( 'completed', 'processing', 'failed' );
    
    		$exclude_on_hold_order = apply_filters( 'woo_ca_exclude_on_hold_order_from_tracking', false );
    
    		if ( $exclude_on_hold_order ) {
    			array_push( $acceptable_order_statuses, 'on-hold' );

    Would you suggest adding ‘on-hold’ in the array along with ‘completed’, ‘processing’ and ‘failed’? Or just comment out the next 3 lines?

    Thank you!

    • This reply was modified 4 years, 11 months ago by isaakgeo.
    Plugin Support CartFlows Team

    (@cartflows)

    Hello @isaakgeo,

    You can add the ‘on-hold’ status to the $acceptable_order_statuses array and comment the next three lines.

    But please note that when you will update the plugin the changes will be no longer in the plugin.

    Thank You!

    Thread Starter isaakgeo

    (@isaakgeo)

    Hello,

    Thanks again for the support!
    Even by doing the above, on-hold orders still get the email!

    Is there anything else i can try?

    Plugin Support CartFlows Team

    (@cartflows)

    Hello @isaakgeo,

    We are checking this issue from our side and trying to reproduce this issue on our end.

    Once we found the issue we will fix it ASAP.

    Your co-operation and patience are much appreciated.

    Thank You!

    Thread Starter isaakgeo

    (@isaakgeo)

    Great! Thank you!

    Thread Starter isaakgeo

    (@isaakgeo)

    Hello,

    Any luck with this?

    Would it help to give you admin access?

    • This reply was modified 4 years, 10 months ago by isaakgeo.
    Thread Starter isaakgeo

    (@isaakgeo)

    Hello,

    Yes, i’m already using the bank transfer payment gateway provided by woocommerce which puts the order on hold. The filter doesn’t work as emails are still being sent.

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Don’t send email to orders “On Hold”’ is closed to new replies.