Answer the question
In order to leave comments, you need to log in
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:
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":
3. After that, they just got into the list of main characteristics:
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
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;?>
As I understand it, I need to find out the id of the product group and replace it in a short description?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question