function get_product_attrs(){
global $product;
$attributes = $product->get_attributes();
foreach($attributes as $attribute):
echo '<strong>'.wc_attribute_label($attribute->get_name()).'</strong>: ';
$values = array();
if ($attribute->is_taxonomy()){
$attribute_taxonomy = $attribute->get_taxonomy_object();
$attribute_values = wc_get_product_terms($product->get_id(), $attribute->get_name(),array('fields'=>'all'));
foreach ($attribute_values as $attribute_value){
$value_name = esc_html($attribute_value->name);
if ($attribute_taxonomy->attribute_public){
// $values[] = '<a href="' . esc_url( get_term_link( $attribute_value->term_id, $attribute->get_name() ) ) . '" rel="tag">' . $value_name . '</a>';
$values[] = $value_name;
} else {
$values[] = $value_name;
}
}
} else {
$values = $attribute->get_options();
foreach ($values as &$value){
$value = esc_html($value);
}
}
echo apply_filters('woocommerce_attribute',wptexturize(implode(',',$values)),$attribute,$values).'<br>';
endforeach;
}