Hay muchas cosas en magento que parecen no estar finalizadas . Un ejemplo esta en los Productos Agrupados. Esta es una característica muy útil que permite a los vendedores añadir un grupo de simples productos juntos en un grupo. Luego, el comprador puede seleccionar cualquiera de todos los productos que son parte del grupo.
Pero, por alguna razón no se muestra las imágenes de cada producto en forma predeterminada.
Sin embargo, agregar estas imágenes no tiene mucha dificultad.
Copia app/design/frontend/base/default/template/catalog/product/view/type/grouped.phtml en
app/design/frontend/yourpackage/yourtemplate/template/catalog/product/view/type/grouped.phtml
Si al directorio de tu template le falta directorios, debes agregarlo. En mi caso tuve que agregar las carpetas /view/type/
Agrega los códigos que están dentro del comentario:
<table class="data-table grouped-items" id="super-product-table" style="float: left; position: relative;">
<col />
<col />
<col width="1" />
<thead>
<tr>
<!--BEGIN CHANGE : SEE IMAGE ///////////////////////////////////////////////////////////-->
<th><?php echo $this->__('Image')
?></th>
<!--END CHANGE : SEE IMAGE ///////////////////////////////////////////////////////// -->
<th><?php echo $this->__('Product Name')
?></th>
<th class="a-right"><?php echo $this->__('Price') ?></th>
<?php if ($_product->isSaleable()): ?>
<th class="a-center"><?php echo $this->__('Qty') ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php if (count($_associatedProducts)): ?>
<?php foreach ($_associatedProducts as $_item): ?>
<?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_item, $_item->getFinalPrice(), true) ?>
<tr>
<!--BEGIN CHANGE : SEE IMAGE////////////////////////////////////////////////////////////////////// -->
<td>
<?php
echo '<A href="'.$this->helper('catalog/image')->init($_item, 'image').'" ><img src="'.$this->helper('catalog/image')->init($_item, 'thumbnail')->resize(77, 77).'" width="77"><a>';
?></td>
<!--END CHANGE : SEE IMAGE //////////////////////////////////////////////////////////////////////////////-->
<td><?php echo $this->htmlEscape($_item->getName()) ?></td>
<td class="a-right">
<?php echo $this->getPriceHtml($_item, true) ?>
<?php echo $this->getTierPriceHtml($_item) ?>
</td>
<?php if ($_product->isSaleable()): ?>
<td class="a-center">
<?php if ($_item->isSaleable()) : ?>
<input name="super_group[<?php echo $_item->getId() ?>]" value="<?php echo $_item->getQty()*1 ?>" type="text" class="input-text qty" />
<?php else: ?>
<p class="availability"><span class="out-of-stock"><?php echo $this->__('Out of stock.') ?></span></p>
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr>
<td colspan="<?php if ($_product->isSaleable()): ?>4<?php else : ?>3<?php endif; ?>"><?php echo $this->__('No options of this product are available.') ?></td>
</tr>
<?php endif; ?>
</tbody>
</table>
Visto en : magento commerce
