From: Laury GvR Date: Tue, 12 Apr 2016 17:21:58 +0000 (-0400) Subject: Title and SKU added X-Git-Tag: v1.0.0^2~33 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a08122592f6ff02e7884da24ed800138d93d352b;p=WP-Themes%2Fjollylama.git Title and SKU added --- diff --git a/functions.php b/functions.php index 45a1e8f..c558ca0 100644 --- a/functions.php +++ b/functions.php @@ -91,7 +91,10 @@ function woo_product_inquiry_tab( $tabs ) { } function woo_product_inquiry_content() { + global $product; echo do_shortcode('[gravityform id="2" title="true" description="true"]'); + echo "

Product name: " . $product->get_title() ."

"; + echo "

Product SKU: " . $product->get_sku() . "

"; } /* Header for posts*/