From: Chuck Scott Date: Fri, 16 Jun 2017 19:52:09 +0000 (-0400) Subject: Added Gift Message to PDF invoice printouts X-Git-Tag: v1.0.20^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=b914b07b931e328875d3a8309501f4c24ca989a5;p=WP-Themes%2FTomsMomsCookies.git Added Gift Message to PDF invoice printouts --- diff --git a/functions.php b/functions.php index c3177b9..2392978 100755 --- a/functions.php +++ b/functions.php @@ -196,6 +196,19 @@ function tm_added_checkout_fields_email( $keys ) { return $keys; } +// Add Gift Message to PDF Invoice printout +add_action( 'wpo_wcpdf_after_order_details', 'woocommerce_invoice_gift_message', 10, 2 ); +function woocommerce_invoice_gift_message ($template_type, $order) { + global $wpo_wcpdf; + if ($template_type == 'invoice') { + ?> +
+ custom_field('Gift Message', "Gift Message:
"); ?> +
+