From: Chuck Scott Date: Fri, 5 May 2017 17:46:47 +0000 (-0400) Subject: Added code to functions.php to insert additional text in new order email above order... X-Git-Tag: v1.0.6^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=a5ec5216cea537c7677a686a14624ee8cbc40afb;p=WP-Themes%2Fthemoleholeonline.git Added code to functions.php to insert additional text in new order email above order details. --- 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 -------------------------------------------------------------- */