Added code to functions.php to insert additional text in new order email above order...
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 5 May 2017 17:46:47 +0000 (13:46 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 5 May 2017 17:46:47 +0000 (13:46 -0400)
functions.php
style.css

index 5a2c6d5..f991d18 100644 (file)
@@ -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 '
+            <p>
+                Hello,
+            </p>
+            <p>
+                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!</p>
+            <p>
+                The Mole Hole<br>
+                Sault Ste. Marie, MI 49783<br>
+                (906) 632-3540
+            </p>
+        ';
+     }
+}
+
index 1031ee8..85f8cd7 100644 (file)
--- 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
 -------------------------------------------------------------- */