WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. MagineM
    Member
    Posted 7 months 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 7 months 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 7 months ago #

    Hi,

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

Reply

You must log in to post.

About this Plugin

About this Topic