• Resolved hhgrrr

    (@hhgrrr)


    Hello,

    Having some difficulty with getting the default woocommerce order notes to appear in the emails.

    I see the below in the email theme files but not sure how this needs to be edited to show the default woocommerce information.

    <?php do_action( 'woocommerce_email_order_meta', $order_obj, $sent_to_admin, $plain_text ); ?>

    any help greatly appreciated,
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pinal.shah

    (@pinalshah)

    Hi @hhgrrr,

    Sorry for the delay in response. The above will add the order meta items in the email. I’ll check and get back to you on this.

    Thanks,
    Pinal

    Plugin Author pinal.shah

    (@pinalshah)

    Hi @hhgrrr,

    Extremely sorry for the long radio silence from my end.

    Below is the patch which will help you to collect the order notes (written by the customer during Checkout).

    $post = get_post( $order_id );
    $customer_comment = $post->post_excerpt;

    In case if you wish to see the order notes added for the order (displayed in the right section in Add/Edit Order), please use the wc_get_order_notes( array('id' => $order_id ) ) for the same.

    I hope this helps.

    Pinal

    How is this going to suppose to work then?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customer Order Details in Email not showing’ is closed to new replies.