Support » Plugin: WooCommerce » New order notification Customer email missing After update to 3.2.0

  • Resolved Liz

    (@member011)



    Customer email address is missing from New Order notification to admin, this started happening immediately after WooCommerce update 3.2.0 October 13th 2017
    Prior to the update, customer email address were showing ok in order notification to admin on October 12th 2017.

    No other changes have been made at all, nothing different, WooCommerce 3.2.0 update is the only thing that has been updated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    Thanks Mike, Much appreciated,

    Would you happen to know if this same issue is the one that also causes the email address to disappear from contact form emails sent from a website?

    I have the exact same issue on the exact same site when a customer completes the contact form on the website, we cannot reply as the senders email is missing!, I’m using the Elegant themes Divi Theme, and it happen at the exact same time as Woo commerce update. I have 13 sites all using Divi theme, however this is the only site using woo commerce as well. 🙂

    I am not use if it is coincidence or maybe related as it is both the contact page form as well as new order notifications that the email is missing from.

    Plugin Author Mike Jolley

    (@mikejolley)

    This issue is about email content, not the reply-to address. Seems unrelated.

    Thanks Mike,
    Warm Regards and
    Have a Great weekend 🙂

    An update quick note, In case anybody else is reading and has the same issue, that email addresses disappear from the contact form when received, I just saw an update to run the Woo commerce updater, and this seemed to instantly fix the senders email address that was also not appearing in a contact form sent from the website.

    It could be coincidence, on the other hand it may help somebody 🙂

    I’ve updated to 3.2.1 and also ran the database update, but I’m still no longer seeing the customer details section in new order emails.

    Plugin Author Mike Jolley

    (@mikejolley)

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

    Thanks for the clarification, I see it now.

    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 );
    

    Hi brothers,
    how can i recover this options (https://imgur.com/a/qZCk6) in order actions (https://imgur.com/a/CaSAv)?

    Just disappeared after update and i need that :s

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘New order notification Customer email missing After update to 3.2.0’ is closed to new replies.