$attribute_name = "pa_brand";
$values = get_the_terms( $product->id, 'pa_brand');
echo wc_attribute_label($attribute_name);
$values = get_the_terms( $product->id, 'pa_brand');
if ( ! $values ) : echo ('-'); else : foreach ( $values as $value ) {echo $value->name;}endif: