xxxxxxxxxx
$product->get_attributes()
//an easy way to display all:
wc_display_product_attributes($product);
xxxxxxxxxx
global $product;
$koostis = $product->get_attribute( 'pa_koostis' );
xxxxxxxxxx
global $product;
$koostis = array_shift( wc_get_product_terms( $product->id, 'pa_koostis', array( 'fields' => 'names' ) ) );
xxxxxxxxxx
$result = array_shift(woocommerce_get_product_terms($product->id, 'pa_koostis', 'names'));