You can hook into the action like this:
Code:
add_action( 'woocommerce_after_shop_loop_item', 'wpse124226_wc_product_attribute_list' );
function wpse124226_wc_product_attribute_list() {
$value = get_the_terms( $product->id, 'pa_package');
echo "<ul>";
foreach ( $value as $values ) {
echo "<li>";
echo $values->name;
echo "</li>";
}
echo "</ul>";
}
Take a look at the codex Plugin API to inform yourself about using hooks. BTW you can use woocommerce functions to get the attributes, especially get_attributes
, take a look at the source at the woocommerce documentation. For an use-case take a look at the product-attributes.php file.