'product',
'posts_per_page' => 8,
);
$product_loop = new WP_Query( $product_args );
if ($product_loop->have_posts()):
$i = 0;
while ( $product_loop->have_posts() ) : $product_loop->the_post();
global $product;
?>
get_average_rating(); ?>
post, $product );?>