WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. freemchr
    Member
    Posted 1 year 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. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

  3. freemchr
    Member
    Posted 1 year 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 1 year ago #

    Any help? I need to make this work.

    Thanks

  5. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    $keys[] = '_payment_method';

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic