getAreaId(); $areaPrices = ColissimoHomeDeliveryPriceSlicesQuery::create() ->filterByAreaId($areaId) ->orderByMaxWeight() ->orderByMaxPrice() ; return $areaPrices; } public function parseResults(LoopResult $loopResult) { /** @var \ColissimoHomeDelivery\Model\ColissimoHomeDeliveryPriceSlices $priceSlice */ foreach ($loopResult->getResultDataCollection() as $priceSlice) { $loopResultRow = new LoopResultRow($priceSlice); $loopResultRow ->set('SLICE_ID', $priceSlice->getId()) ->set('MAX_WEIGHT', $priceSlice->getMaxWeight()) ->set('MAX_PRICE', $priceSlice->getMaxPrice()) ->set('SHIPPING', $priceSlice->getShipping()) ; $loopResult->addRow($loopResultRow); } return $loopResult; } }