• COD orders not triggering New Order emails

    To change Cash on Delivery orders from pending to completed
    class-wc-gateway-cod.php
    line 206
    update line from processing to completed.
    // $order->update_status( ‘processing’, __( ‘Payment to be made upon delivery.’, ‘woocommerce’ ) );

    $order->update_status( ‘completed’, __( ‘Payment to be made upon delivery.’, ‘woocommerce’ ) );

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Thread Starter techmichelle

    (@techmichelle)

    Note to have email sent to customer, do not comment out ‘processing’ and just add line ‘completed’

    $order->update_status( ‘processing’, __( ‘Payment to be made upon delivery.’, ‘woocommerce’ ) );
    $order->update_status( ‘completed’, __( ‘Payment to be made upon delivery.’, ‘woocommerce’ ) );

Viewing 1 replies (of 1 total)

The topic ‘COD orders not triggering emails’ is closed to new replies.