Support » Plugin: WooCommerce » Customer details removed from new order email in 3.2

  • Resolved Galen Gidman

    (@galengidman)


    Since updating to WC 3.2, the “Customer details” section of the new order admin email has disappeared. I tracked this down to this commit, and specifically this comment that states that this information was moved in 3.2. Where did it get moved to?

Viewing 13 replies - 1 through 13 (of 13 total)
  • You should still have (almost) all of the customer details section in the new order e-mails. Only the e-mail field is missing in 3.2 and a patch for that will be in 3.2.1 (https://github.com/woocommerce/woocommerce/pull/17163)

    Confirmed that updating to 3.2.1 is the fix. Thanks for saving time!

    Upgraded from 3.12 to 3.2.1 and now customer details are missing for us. Any way to add this back in?

    Thread Starter Galen Gidman

    (@galengidman)

    Upgraded from 3.12 to 3.2.1 and now customer details are missing for us. Any way to add this back in?

    They’re located under the billing address in the left-hand column.

    Not for us, the addresses are there, but the notes/email/phone Customer details are completely missing, happened when we updated to 3.2.1. It is really hindering the team handling our orders.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Details are there – see https://github.com/woocommerce/woocommerce/issues/17289 for a screenshot of how it looks in 3.2.1..

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @kellykz,

    After cross testing on a fresh install of WooCommerce v3.2.1 today to gain an additional set of comparison results all of the customer details are displaying within the New Order email including notes/email/phone etc.

    This indicates that something on your site is possibly preventing these details from displaying. Have you tested on your site to check that it’s not some code within your theme or an activated plugin which is preventing these from displaying for you?

    No, nothing that would prevent this, and was working fine until I updated from 3.1.2 to 3.2.1.

    Just did some tests, resent the notifications, and still not showing where your screenshots indicate. Missing notes, email and phone.

    Okay, I just checked and my site did have templates copied into the theme that included the customer details and admin email. I deleted them, and the customer details now show, but the shipping address seems to be missing? Looking into that now……

    Scratch that, a new order came in and shipping address is there, so all is good. Thanks!

    For anyone who wants to keep the customer details section (to stay consistent with old records, for example), here’s a filter that you can drop into functions.php:

    
    /**
     * WooCommerce new order email customer details
     */
    function wc_customer_details( $fields, $sent_to_admin, $order ) {
    	if ( empty( $fields ) ) {
    		if ( $order->get_billing_email() ) {
    			$fields['billing_email'] = array(
    				'label' => __( 'Email address', 'woocommerce' ),
    				'value' => wptexturize( $order->get_billing_email() ),
    			);
    		}
    		if ( $order->get_billing_phone() ) {
    			$fields['billing_phone'] = array(
    				'label' => __( 'Phone', 'woocommerce' ),
    				'value' => wptexturize( $order->get_billing_phone() ),
    			);
    		}
    	}
    	return $fields;
    }
    add_filter( 'woocommerce_email_customer_details_fields', 'wc_customer_details', 10, 3 );
    

    WP 4.8.1 & WC 3.2.1

    Hi Mike & Guys.
    Can I please indulge for a total Newbie here please, i have the above problem re: no customers details in Admin Order.
    My issue , (to me) appears to come from the fact that my email templates are not updating with each update (currently @ ver 2.4) because i get i notice to say the theme has overridden the template as so :
    “This template has been overridden by your theme and can be found in: /woocommerce/emails/admin-new-order.php.”
    My end of my current template contains the following lines, i removed line No.3 and tested, but it Did Not fix the issue : i.e. still no customer email or Tel. No.

    code removed for forum display.

    php do_action( ‘woocommerce_email_after_order_table’, $order, true, false

    php do_action( ‘woocommerce_email_order_meta’, $order, true, false

    php do_action( ‘woocommerce_email_customer_details’, $order, $sent_to_admin, $plain_text

    php do_action( ‘woocommerce_email_footer’

    Can I please ask for your help with the the 2 ways i can solve this issue I think below

    Edit existing template in theme
    Replace old templates with current/latest templates, and where will i find them

    Just thought of a 3rd way 🙂 , how can i make the templates update automatically with each sys update

    Sorry to be a pain, but I Really do need to fix this problem … with your help , and I am Stumped !!

    Thank You

    Sorry Guys.
    Re, above … Although the Email templates say they are overridden by the theme, they are actually identical, maybe just passed on, excatly as they are.

    Thought this might be important re: above request for support

    Cheers

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Customer details removed from new order email in 3.2’ is closed to new replies.