I am very new to wordpress and woocommerce. I am modifying the twenty seventeen theme's search result page to look like a table. Most of the products are variable products.I am using the code as below to show the results in a table
<table class="search-res" style="table-layout: auto; width: 100%;">
<tr><td>
<?php
if ( has_post_thumbnail())
the_post_thumbnail('excerpt-thumb');
?></td>
<td>
<?php
the_title( sprintf( '<th class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ) );
echo"</a></th>";
?>
</td>
<td style="font-style:italic;font-size:small;"><?php the_excerpt(); ?></td>
<th><?php
global $post;
$product = new WC_Product($post->ID );
echo wc_price($product->get_price_including_tax(1,$product->get_price()));
?></th>
</tr>
</table>
The problem that I am facing is here the minimum price of the product is gettiong displayed. Instead I want the price range to show up. Also how can I get rating and category attributes of the product to show up in the table?