From: Chuck Scott Date: Wed, 8 Jul 2015 18:31:02 +0000 (-0400) Subject: Added Gift Message and FedEx Shipping fields to E-Mail messages for WooCommerce X-Git-Tag: v1.0.5^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=f04d16adc517da47cbd36edb2e68b1923af3cf6a;p=WP-Themes%2FTomsMomsCookies.git Added Gift Message and FedEx Shipping fields to E-Mail messages for WooCommerce --- diff --git a/functions.php b/functions.php index e61d6af..4d43837 100755 --- a/functions.php +++ b/functions.php @@ -184,6 +184,14 @@ function tm_added_checkout_fields_order_meta( $order_id ) { } +// Add custom fields to order E-Mail messages +add_filter('woocommerce_email_order_meta_keys', 'tm_added_checkout_fields_email'); +function tm_added_checkout_fields_email( $keys ) { + $keys[] = 'Gift Message'; + $keys[] = 'FedEx Shipping'; + return $keys; +} + // Add a $1.00 handling fee to all orders. add_action( 'woocommerce_cart_calculate_fees','endo_handling_fee' ); function endo_handling_fee() {