thank you for your answers. I changed the code like you said and I dont have any error right now. But I dont get any output. I'm trying to echo all available sizes for the product
– marcMay 8 '16 at 17:34

1 Answer
1

You can get the value of custom attribute using following
$attribute = $_product- >getResource()->getAttribute('custom_attribute_code');
if ($attribute)
{
echo $attribute_value = $attribute ->getFrontend()->getValue($_product);
}