• Hi!

    An X-file is happening to us in a website. When someone cancel his order, the site admin doesn’t get the cancelled order email, but she receives the new order email. Any idea about what is happening? The e-mail receiver is well written and we have checked with different ones. We have installed the WP-Mail-SMTP and the WP Mail Logging, but there’s no logs when an order has been cancelled. Any idea?

    Thanks in advance!!! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • I dont think the option for customer to cancel order even exists in Woocommerce as it is. You probably have some kind of plugin or code customization that adds this functionality which is to blame for this error.

    Thread Starter beewing

    (@beewing)

    No, maybe I explain it badly, sorry for that. The customer doesn’t cancel the order, but when the order is cancelled because it couldn’t be paid for some reason. What I mean is the email which can be set in Woocommerce -> Settings -> Emails -> Cancelled order.

    In this case, have you checked the template files, that are assigned to these two events?

    Thread Starter beewing

    (@beewing)

    Yes, I’ve checked. The file admin-cancelled-order.php has not been edited or modified:

    /**
    * @hooked WC_Emails::email_header() Output the email header
    */
    do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?>

    <p><?php printf( __( ‘The order #%1$d from %2$s has been cancelled. The order was as follows:’, ‘woocommerce’ ), $order->get_order_number(), $order->get_formatted_billing_full_name() ); ?></p>

    /**
    * @hooked WC_Emails::order_details() Shows the order details table.
    * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
    * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
    * @since 2.5.0
    */
    do_action( ‘woocommerce_email_order_details’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * @hooked WC_Emails::order_meta() Shows order meta data.
    */
    do_action( ‘woocommerce_email_order_meta’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * @hooked WC_Emails::customer_details() Shows customer details
    * @hooked WC_Emails::email_address() Shows email address
    */
    do_action( ‘woocommerce_email_customer_details’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * @hooked WC_Emails::email_footer() Output the email footer
    */
    do_action( ‘woocommerce_email_footer’, $email );

    I don’t see anything strange.

    Thats weird indeed. Still could there be any plugins possibly interfering with order status? Have you tried cancelling order with default template on?

    Thread Starter beewing

    (@beewing)

    Hi!

    Once deactivated all the plugins and checked if the cancel order email works, this function still fails. Do you need the backend or/and FTP access to check it?

    Kind regards!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cancelled order email not working’ is closed to new replies.