• Hello,

    We are finding that the email functionality of this plugin seems inconsistent. When Order Status changes, its not always triggering the email to be sent. Right now, we have an automated code which changes the Order Status accordingly. We are not manually changing the Order Status ourselves. Could this be the culprit? Would you kindly provide some troubleshooting relating to this issue? Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    YITH WooCommerce Custom Order Status plugin doesn’t change the standard way WooCommerce email work.
    If your code uses the standard WooCommerce hooks and functions, everything should work fine!
    Please note that some of the WooCommerce emails are sent only on specific status changes: for example the “Processing Order” email is sent when an order switches from “pending” to “processing” status.

    Best Regards
    YIThemes

    Thread Starter givenly

    (@givenly)

    Hi,
    I have updated the status of the order in this way:

    
    $order = wc_get_order($orderId);
    if ($order) {
        $order->update_status($newOrderStatus, '(by cron)');
    }
    

    or

    
    $order = new WC_Order($orderId);
    if ($order) {
        $order->update_status($newOrderStatus, '(by cron)');
    }
    

    This code has updated the status but email does not sends.

    Please advise.

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    Your code seems correct!
    Which specific status doesn’t ship emails?

    Best Regards
    YITHEMES

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Status Emails’ is closed to new replies.