getAreaId(); $modeId = $this->getDeliveryModeId(); $areaPrices = ChronopostHomeDeliveryPriceQuery::create() ->filterByDeliveryModeId($modeId) ->filterByAreaId($areaId) ->orderByWeightMax(); return $areaPrices; } /** * @param LoopResult $loopResult * @return LoopResult */ public function parseResults(LoopResult $loopResult) { /** @var ChronopostHomeDeliveryPrice $price */ foreach ($loopResult->getResultDataCollection() as $price) { $loopResultRow = new LoopResultRow($price); $loopResultRow ->set("SLICE_ID", $price->getId()) ->set("MAX_WEIGHT", $price->getWeightMax()) ->set("MAX_PRICE", $price->getPriceMax()) ->set("PRICE", $price->getPrice()) ->set("FRANCO", $price->getFrancoMinPrice()) ; $loopResult->addRow($loopResultRow); } return $loopResult; } }