• CONTACT
  • ABOUT US
Debugman Programming Blogs
  • HOME
  • HTML & CSS
  • PHP
  • CMS
    • WORDPRESS
  • JOOMLA
  • Web Hosting
  • Database
  • Miscellaneous

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

Ilavarasan Ila/15 Feb, 17/1411/0
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 );
}
?>
Hope It will be useful for WordPress inter-fax development.

interfaxinterfax customizationwoocommerceWORDPRESS
Redirection page for wordpress

How to disable wordpress directory for wp-content...

15 Feb, 17

Zendesk chat Integration with wordpress website

15 Feb, 17
Ilavarasan Ila
Online Media Expert | Web Consultant | Web Design | Web strategy I am a senior Wordpress developer with 5+ years of experience with a passion for building high-quality software and web products.

Related Posts

MiscellaneousPHPWeb Hosting

Solved; htaccess works in localhost but doesn’t...

CMSWeb HostingWORDPRESS

Shared Hosting vs Managed wordpress hosting difference...

CMSPHPWORDPRESS

How to fix themify theme warning on theme-function.php...

Categories

  • CMS (9)
  • HTML & CSS (2)
  • Miscellaneous (3)
  • PHP (14)
  • Uncategorized (4)
  • Web Hosting (4)
  • WORDPRESS (13)

Recent Comments

    Tags

    404page admin template AWS basic test case codeigniter codeigniter not working in aws CSS disable directory ecommerce extesnion frontend UI GENERAL hosting htaccess htaccess not working html image upload issue interfax interfax customization logo making magento extensions magento themes mvc framework opencart opencart themes php php.ini file platform identifier platform lookup PLUGIN SERVER shared hosting shared hosting vs wordpress managed hosting technology lookup Testcase top market place web hosting WINDOWS woocommerce WORDPRESS wordpress hosting wordpress managed hosting wordpress themes

    Recent Posts

    Solved; htaccess works in localhost but...

    18 Dec, 18

    Shared Hosting vs Managed wordpress hosting...

    31 Aug, 18

    How to fix themify theme warning on...

    09 Mar, 18

    Social Icons

    [email protected] All Rights Reserved