Hi @jwiere03,
I’m sure there are plugins/extensions out there that may do what you want. For example is something like this helpful?
https://barn2.co.uk/woocommerce-variations-table-plugin/
I don’t want to add extra plugins. I was able to use get_available_variations(); to get what I needed. A simplified version of what I did is below, it was placed in the content-single-product.php file
<?php
$product = wc_get_product();
if ( $product->is_type( 'variable' ) ) {
$variations = $product->get_available_variations();
foreach ($variations as $key => $value){
$scs_wc_size = $value['attributes']['attribute_pa_size'];
echo $scs_wc_size. ' ' . $value['price_html'].'<br/>';
}
}
?>
I was only showing the price and name of each variation, but there are is a lot of data that you could use from this. I also did some extra html formatting and used str_replace and ucwords functions to format my text.