Adding Shipping Phone/Email to New Order Emails
-
I’m using this custom code to add a filter to require a separate phone number and email for an order if they choose to ship to a different address.
add_filter( 'woocommerce_checkout_fields' , 'phone_email_shipping_checkout_fields' ); function phone_email_shipping_checkout_fields( $fields ) { $fields['shipping']['shipping_phone'] = array( 'label' => __('Phone', 'woocommerce'), 'required' => true, 'class' => array('form-row-wide'), 'clear' => true ); $fields['shipping']['shipping_email'] = array( 'label' => __('Email', 'woocommerce'), 'required' => true, 'class' => array('form-row-wide'), 'clear' => true ); return $fields; }
My question is… what filter or hook do I need to use to add these to the New Order Admin emails as well? I’ve managed to add them to the email after the order details but I’d prefer to include them in the boxes for “Shipping Address” so that it mirrors the “Billing Address” box exactly.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Adding Shipping Phone/Email to New Order Emails’ is closed to new replies.