M
M
miksmees2014-01-13 22:29:13
Design
miksmees, 2014-01-13 22:29:13

Magento product card

Hello everyone, so that everything is clear, I will tell you point by point:
1. There is a product with a brief description:
4309974.png
Purpose: To make 3-4 main characteristics instead of a brief description.
2. In the admin panel, I made a section of attributes "Short characteristics":
4283350.png
3. After that, they just got into the list of main characteristics:
4311017.png
4. I know how to put one attribute there (see point 1 of the goal), but I need to do the whole group of attributes at once , so that later you can edit them from the admin panel.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Gerasimenko, 2014-06-25
@Hide

Use this code:

<?php if ($_product->getShortDescription()):?>
    <div class="short-description">
        <h2><?php echo $this->__('Quick Overview') ?></h2>
        <ul><?php
            $groupId = 88;
            $attributesCollection = Mage::getResourceModel('catalog/product_attribute_collection');
            $attributesCollection->setAttributeGroupFilter($groupId);
            foreach ($attributesCollection as $attribute) : ?>
                <li>
                    <b><?php echo $attribute->getFrontend()->getLabel(); ?></b>:
                    <?php echo $attribute->getFrontend()->getValue($_product); ?>
                </li>
               <?php
            endforeach; ?>
        </ul>
    </div>
<?php endif;?>

where $groupId is the group ID
And this is how it will look on the frontend:
068c472839d19b737109ed772cd53c627184aef0

M
miksmees, 2014-01-13
@miksmees

As I understand it, I need to find out the id of the product group and replace it in a short description?

W
worders, 2016-01-19
@worders

Tell? If I need to display a different set of attributes for a different product group,
what should I do? if there is one

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question