Skip to content

Commit

Permalink
fix(checkout): take carrier specific mailbox weight into account (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanveen committed Jul 11, 2024
1 parent cec93a9 commit 6ce5131
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Model/Quote/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ private function getDeliveryData(?string $packageType = null): array
&& ($allowPickup || $allowStandardDelivery || $allowMorningDelivery || $allowEveningDelivery);

if ($allowDeliveryOptions && $packageType === AbstractConsignment::PACKAGE_TYPE_MAILBOX_NAME) {
$allowDeliveryOptions = $this->helper->getBoolConfig($carrierPath, 'mailbox/active');
$this->package->setMailboxSettings($carrierPath);
$allowDeliveryOptions = $this->helper->getBoolConfig($carrierPath, 'mailbox/active')
&& $this->package->getMaxMailboxWeight() >= $this->package->getWeight();
}

$myParcelConfig['carrierSettings'][$carrier] = [
Expand Down

0 comments on commit 6ce5131

Please sign in to comment.