DHL
This commit is contained in:
@@ -161,15 +161,7 @@ class DHL extends AbstractDeliveryModule
|
|||||||
->orderByMaxWeight(Criteria::ASC)
|
->orderByMaxWeight(Criteria::ASC)
|
||||||
->findOne();
|
->findOne();
|
||||||
|
|
||||||
while (prev($areaPrices)) {
|
return $deliveryPrice->getPriceWithTax();
|
||||||
if ($weight > key($areaPrices)) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
$postage = current($areaPrices);
|
|
||||||
}
|
|
||||||
return $postage;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user