|
Ik ben al wat verder.
Krijg wel de kolom met daarin een waarde maar dit is denk ik de id van het artibute en niet de goede waarde.hoe krijg ik de waarde erin.
hieronder is de code van de grouped.phtml
?>
<?php $_product = $this->getProduct() ?>
<?php $_associatedProducts = $this->getAssociatedProducts() ?>
<?php if($_product->isSaleable() && count($_associatedProducts)): ?>
<p class="availability"><?php echo $this->__('Availability: In stock.') ?></p>
<?php else: ?>
<p class="availability"><?php echo $this->__('Availability: Out of stock.') ?></p>
<?php endif; ?>
<table cellspacing="0" class="data-table" id="super-product-table">
<col />
<col />
<col width="1" />
<thead>
<tr><th ><?php echo $this->__('Aantal in doos') ?></th>
<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><td><?php echo $this->htmlEscape($_item->getaantal()) ?></td>
<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: ?>
<?php echo $this->__('Out of stock.') ?>
<?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>
<script type="text/javascript">decorateTable(’super-product-table’)</script>
Bericht wijzigen/verwijderen
|