WordPress.org

Forums

WooCommerce - excelling eCommerce
Show payment type in Order Email received by admin (3 posts)

  1. MagineM
    Member
    Posted 1 year ago #

    Hi,

    How can I add the payment type to the new order email received by the admin after a new order has been made? Eg. the admin doesn't know if it is a Bank Transfer or CC payment etc. until they actually look at the orders under the WC menu.

    https://wordpress.org/plugins/woocommerce/

  2. terrytsang
    Member
    Posted 1 year ago #

    Hi @MagineM, you can add below code to your theme functions.php:

    add_action( 'woocommerce_email_after_order_table', 'admin_new_order_email_payment_type', 15, 2 );
    
    function admin_new_order_email_payment_type( $order, $is_admin_email ) {
      if ( $is_admin_email ) {
        echo '<p><strong>Payment Type:</strong> ' . $order->payment_method_title . '</p>';
      }
    }
  3. MagineM
    Member
    Posted 1 year ago #

    Hi,

    Thank you for the help. Will give it a go :).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic