WordPress.org

Forums

WooCommerce - excelling eCommerce
Change Admin Email On Order (5 posts)

  1. freemchr
    Member
    Posted 2 years ago #

    Hi Guys,

    I want to be able to change in the email that gets sent to admin when an order is done the type of payment method the user has chosen.

    It will save us going in and checking to see the payment method if the user has selected bank transfer as it takes a few days to clear.

    Just need something like:

    Payment Method: Bank Transfer / Paypal

    http://wordpress.org/extend/plugins/woocommerce/

  2. Mike Jolley
    Member
    Plugin Author

    Posted 2 years ago #

  3. freemchr
    Member
    Posted 2 years ago #

    Sorry not familiar with editing the templates to much.

    Will this only work for the admin emails?

    I added this

    /**
    * Add the field to order emails
    **/
    add_filter('woocommerce_email_order_meta_keys', 'my_custom_checkout_field_order_meta_keys');

    function my_custom_checkout_field_order_meta_keys( $keys ) {
    $keys[] = 'payment_method';
    return $keys;
    }

  4. freemchr
    Member
    Posted 2 years ago #

    Any help? I need to make this work.

    Thanks

  5. Mike Jolley
    Member
    Plugin Author

    Posted 2 years ago #

    $keys[] = '_payment_method';

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