SyntaxFix
Write A Post
Hire A Developer
Questions
You can get the single value for the attribute with below code:
$pa_koostis_value = get_post_meta($product->id, 'pa_koostis', true);