Okay, for anyone looking to include the WooCommerce review tab not on an actual single-product page here’s the secret sauce:
In your template file, you need:
global $withcomments;
$withcomments = true;
Then add a filter for the comments template:
//add filter to use our custom review template
add_filter('comments_template','{{YOUR_HELPER_FUNCTION}}');
/**
* Hook function for using custom quickview review template
* @return [string] [file path to the template]
*/
function YOUR_HELPER_FUNCTION(){
$template = LCS_DIR . "../templates/tmpl-single-product-reviews.php";
if ( file_exists( $template ) )
return( $template );
}
$template
is the full file path to the template file you want to use.
BadaBing and you’re done!