• Resolved amfcreative

    (@amfcreative)


    Hi, owner wants to see type of credit card used (i.e. VISA, mastercard, AMEX etc) in the new order email notifications

    Here’s what I have so far in my functions.php:
    _________________________________________________

    add_action( 'woocommerce_email_after_order_table', 'add_payment_method_to_admin_new_order', 15, 2 );
    
    function add_payment_method_to_admin_new_order( $order, $is_admin_email ) {
      if ( $is_admin_email ) {
        echo '<p><strong>Credit Card Type:</strong> ' . $order->WHAT GOES HERE???. '</p>';
      }
    }

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Credit Card TYPE to new order email’ is closed to new replies.