Mam problem z posortowaniem wyników z tej części kodu:
<?php foreach ($_associatedProducts as $_item): ?> <?php if ($_item->isSaleable()) : ?> <?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_item, $_item->getFinalPrice(), true) ?> <tr> <td class="a-right"><span style="font-size: 8pt;"> </span></td> <?php if ($_product->isSaleable()): ?> <td class="a-center"> <?php if ($_item->isSaleable()) : ?> <?php else: ?> <?php endif; ?> </td> <?php endif; ?> </tr> <?php endif; ?> <?php endforeach; ?>
chciałbym żeby to było sortowane po
a nie po ID.
$_item->getName()
Jak to zrobić?