E-Mail Priority Problem
-
Hello,
I’ve added a new field for customer order email notification. I want it to appear in the email under Shipping Address. However, this field appears at the top (billing and shipping). I changed Priority. But it didn’t work. Can you help me ?add_filter( 'woocommerce_email_order_meta_fields', 'a_filter_woocommerce_email_order_meta_fields_phone_number', 40, 3 ); // Display on email notifications function a_filter_woocommerce_email_order_meta_fields_phone_number( $fields, $sent_to_admin, $order ) { // Get meta $shipping_phone = $order->get_meta( '_shipping_phone' ); // NOT empty if ( ! empty( $shipping_phone ) ) { $fields['_shipping_phone'] = array( 'label' => __( 'Shipping Phone', 'woocommerce' ), 'value' => $shipping_phone, 'priority' => 96, ); } return $fields; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘E-Mail Priority Problem’ is closed to new replies.