From a5ec5216cea537c7677a686a14624ee8cbc40afb Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 5 May 2017 13:46:47 -0400 Subject: [PATCH] Added code to functions.php to insert additional text in new order email above order details. --- functions.php | 21 +++++++++++++++++++++ style.css | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 5a2c6d5..f991d18 100644 --- a/functions.php +++ b/functions.php @@ -109,3 +109,24 @@ function add_custom_fields_to_order_printout( $fields, $order ) { } add_filter( 'wcdn_order_info_fields', 'add_custom_fields_to_order_printout', 10, 2 ); +// Add text to new order email +add_action( 'woocommerce_email_before_order_table', 'add_order_order_thank_you_text_email', 10, 2 ); +function add_order_order_thank_you_text_email( $order, $sent_to_admin ) { + if ( ! $sent_to_admin ) { + echo ' +

+ Hello, +

+

+ Thank you for your order! We will fill your order as soon as possible. Once your order is ready to ship, + we will send an email with your shipping information. Your credit card will not be charged until your order + is ready to ship. Thank you very much for shopping with us today!

+

+ The Mole Hole
+ Sault Ste. Marie, MI 49783
+ (906) 632-3540 +

+ '; + } +} + diff --git a/style.css b/style.css index 1031ee8..85f8cd7 100644 --- a/style.css +++ b/style.css @@ -4,7 +4,7 @@ Description: Theme from Galleria for The Mole Hole Author: Gaslight Media Author URI: http://www.gaslightmedia.com Template: storefront -Version: 1.0.5 +Version: 1.0.6 */ /* =themoleholeonline styles starts here -------------------------------------------------------------- */ -- 2.17.1