To pierwsze się udało i wygląda tak:
kod pliku grouped.phtml:
Kod: Zaznacz cały
?>
<?php $_product = $this->getProduct() ?>
<?php $_associatedProducts = $this->getAssociatedProducts() ?>
<?php if($_product->isSaleable() && count($_associatedProducts)): ?>
<p class="availability"><?php echo $this->__('Availability') ?>: <span class="in-stock"><?php echo $this->__('In stock') ?></span></p>
<?php else: ?>
<p class="availability"><?php echo $this->__('Availability') ?>: <span class="out-of-stock"><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<?php if (count($_associatedProducts)): ?>
<?php foreach ($_associatedProducts as $_item): ?>
<?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_item, $_item->getFinalPrice(), true) ?>
<tr>
<td width="44">
<?php
echo '<A href="'.$this->helper('catalog/image')->init($_item, 'image').'" ><img src="'.$this->helper('catalog/image')->init($_item, 'thumbnail')->resize(120, 120).'" width="120"><a>';
?>
<?php echo $this->__('Qty') ?>
<?php if ($_item->isSaleable()) : ?>
<input name="super_group[<?php echo $_item->getId() ?>]" value="<?php echo $_item->getQty()*1 ?>" type="text" class="input-text qty" /></td>
<p> </p>
<?php else: ?>
</p>
<p class="availability"><span class="out-of-stock"><?php echo $this->__('Out of stock.') ?></span></p>
<?php endif; ?>
<?php if ($_product->isSaleable()): ?><?php endif; ?>
<?php endforeach; ?>
<?php else: ?>
<td colspan="<?php if ($_product->isSaleable()): ?>4<?php else : ?>3<?php endif; ?>"><?php echo $this->__('No options of this product are available.') ?>
<?php endif; ?>
<script type="text/javascript">decorateTable('super-product-table')</script>
Jakieś pomysły ??