I am new to magento, and I need to display the product attributes on product list in the quickview popup of every product. please help,ASAP!

  • please share your code...
    – Amit Bera
    Nov 8 '15 at 10:20

You could use something like this:

$_helper = $this->helper('catalog/output');

echo $_helper->productAttribute($_product, $_product->getName(), 'name');
  • that display the name of the product!
    – Alex Suciu
    Nov 6 '15 at 22:11
  • Yeap. Do you want to show all or some attributes? Nov 7 '15 at 15:10
  • I don't think you understood. I was needing the product attributes, not the product names. I answer a few hours ago, if you look up, the sollution for my question. thanks you!
    – Alex Suciu
    Nov 7 '15 at 16:34
  • i got it. But, just to let you know, the name is an attribute as well. ;-) Nov 7 '15 at 17:43
<?php $attributes = $_product->getAttributes();?>
    <div class= "specifications">
        <?php foreach ($attributes as $attribute) {
            if ($attribute->getIsVisibleOnFront()) {
                $value   = $attribute->getFrontend()->getValue($_product);
                $s_value = $attribute->getFrontend()->getLabel($_product);
                echo $s_value;
                echo $value;
        } ?>

this works for me :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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