0

I need to display a specific product attribute value.

enter image description here

1 Answer 1

0

You can write below code in phtml file.

<?php
    echo $_product->getData('perverpakking');
?>

If it is dropdown attribute, then use below code.

<?php
    echo $_product->getAttributeText('perverpakking');
?>
2
  • 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.