From 193fed04ad9606d3f3d353880e2fa42ebbb6eadf Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 24 Jun 2016 11:54:42 -0400 Subject: [PATCH] used get_title function for product to fix 500 error --- sidebar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sidebar.php b/sidebar.php index a1fcdc8..d3a227b 100644 --- a/sidebar.php +++ b/sidebar.php @@ -2,7 +2,7 @@ $id = $post->ID; $product_meta = new WC_Product($id); $sku = $product_meta->get_sku(); - $title = $product; + $title = $product_meta->get_title(); ?>