Please wait, loading...

 

How to add order comments, Customer Name and phone number in interfax email receipt?

December 2, 2019by cms_admin0
http://codemade.in/wp-content/uploads/2019/03/customization-woocommerce-560x300-1.jpg

How to add order comments, Customer Name and phone number in Interfax email receipt?

PHPWORDPRESS

After configuring inter-fax in woo-commerce Interfax Configuration. After we installed a woo-commerce plugin called inter-fax, which is used to send order completion email to fax number. It does include everything on the order email template except leaving the order note field, customer name, phone number. Below is the custom source code of inter-fax plugin customization.

Here is an custom code of adding the customer’s note to the bottom of all emails in fax machine.


add_action( ‘woocommerce_email_after_order_table’ , ‘so_28333042_add_customer_note’ );
function so_28333042_add_customer_note( $order ){
$post = get_post( $order->id );
if( $post->post_excerpt != ” ){
echo “Customer Note:
” . wp_kses_post( $post->post_excerpt );
}
}

Below custom code for customer name, phone number in custom notes for ordered item

if( $post->post_excerpt != ” ){
echo “Customer Note:
” . wp_kses_post( $post->post_excerpt );
}
echo ”
Customer Name:
” . wp_kses_post( $order->billing_first_name );
echo ”
Phone Number:
” . wp_kses_post( $order->billing_phone );
}
?>

cms_admin

Leave a Reply

Your email address will not be published. Required fields are marked *

Headquarters

Codemade Solutions

No. 9, 3rd Floor, Sambantham Gardens Taramani, Velachery, Chennai- 600 042
Get in Touch
AVANTAGEHeadquarters
OUR LOCATIONSWhere to find us?
http://codemade.in/wp-content/uploads/2019/04/img-footer-map.png
GET IN TOUCHAvantage Social links

Copyright @ 2019 -2020 Codemade Solutions. All rights reserved.