Toujours module DHL
This commit is contained in:
@@ -154,10 +154,12 @@ class DHL extends AbstractDeliveryModule
|
||||
);
|
||||
}
|
||||
|
||||
$postageArray = DHLDeliveryPriceQuery::create()
|
||||
->findByAreaId($areaId);
|
||||
|
||||
$postage = current($postageArray);
|
||||
$deliveryPrice = DHLDeliveryPriceQuery::create()
|
||||
->filterByAreaId($areaId)
|
||||
->filterByMaxWeight($weight, Criteria::GREATER_EQUAL)
|
||||
->orderByMaxWeight(Criteria::ASC)
|
||||
->findOne();
|
||||
|
||||
while (prev($areaPrices)) {
|
||||
if ($weight > key($areaPrices)) {
|
||||
|
||||
Reference in New Issue
Block a user