Title and SKU added
authorLaury GvR <laury@gaslightmedia.com>
Tue, 12 Apr 2016 17:21:58 +0000 (13:21 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 12 Apr 2016 17:21:58 +0000 (13:21 -0400)
functions.php

index 45a1e8f..c558ca0 100644 (file)
@@ -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 "<p>Product name: " . $product->get_title() ."</p>";
+        echo "<p>Product SKU: " . $product->get_sku() . "</p>";
 }
 
 /* Header for posts*/