Hmmm… yeah variations are part of the Cart form.
Try this:
1. Create a new Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
2. Add this top its content:
<?php
function db_list_woo_attributes() {
global $product;
if ( $product->get_type() == 'variable' ) {
foreach ( $product->get_available_variations() as $key ) {
$attr_string = array();
foreach ( $key['attributes'] as $attr_name => $attr_value ) {
$attr_string[] = $attr_value;
echo '<span class="woo-attribute">' . implode( '',$attr_string ) . '</span>';
}
}
}
}
// Call the attribute list
db_list_woo_attributes();
?>
Select the woocommerce_single_product_summary
hook.
Check execute PHP
And set the display rules to Product > All Products