I need to display a specific product attribute value.

enter image description here

1 Answer 1


You can write below code in phtml file.

    echo $_product->getData('perverpakking');

If it is dropdown attribute, then use below code.

    echo $_product->getAttributeText('perverpakking');
  • I'm getting now some value out of it, but not the right value. screenshot: ibb.co/jdhBQF
    – Front end
    Jul 12, 2017 at 12:13
  • Is it dropdown attribute ? If yes then see my updated answer to print dropdown attribute value. Jul 12, 2017 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.