1

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!

1
  • please share your code...
    – Amit Bera
    Nov 8, 2015 at 10:20

2 Answers 2

1

You could use something like this:

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

echo $_helper->productAttribute($_product, $_product->getName(), 'name');
4
  • that display the name of the product!
    – Alex Suciu
    Nov 6, 2015 at 22:11
  • Yeap. Do you want to show all or some attributes? Nov 7, 2015 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, 2015 at 16:34
  • i got it. But, just to let you know, the name is an attribute as well. ;-) Nov 7, 2015 at 17:43
1
<?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 and acknowledge you have read our privacy policy.

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