Skip to content

Commit 7b2e71d

Browse files
MAGETWO-95186: [2.3] Incorrect table rates shipping charge at check out with cart price rule
- check if there is shipping rate
1 parent c84d514 commit 7b2e71d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Checkout/Model/PaymentInformationManagement.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ public function savePaymentInformation(
118118
$shippingAddress = $quote->getShippingAddress();
119119
if ($shippingAddress && $shippingAddress->getShippingMethod()) {
120120
$shippingRate = $shippingAddress->getShippingRateByCode($shippingAddress->getShippingMethod());
121-
$shippingAddress->setLimitCarrier($shippingRate->getCarrier());
121+
$shippingAddress->setLimitCarrier(
122+
$shippingRate ? $shippingRate->getCarrier() : $shippingAddress->getShippingMethod()
123+
);
122124
}
123125
}
124126
$this->paymentMethodManagement->set($cartId, $paymentMethod);

0 commit comments

Comments
 (0)