We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 381d6e5 + 7b2e71d commit ed22463Copy full SHA for ed22463
app/code/Magento/Checkout/Model/PaymentInformationManagement.php
@@ -118,7 +118,9 @@ public function savePaymentInformation(
118
$shippingAddress = $quote->getShippingAddress();
119
if ($shippingAddress && $shippingAddress->getShippingMethod()) {
120
$shippingRate = $shippingAddress->getShippingRateByCode($shippingAddress->getShippingMethod());
121
- $shippingAddress->setLimitCarrier($shippingRate->getCarrier());
+ $shippingAddress->setLimitCarrier(
122
+ $shippingRate ? $shippingRate->getCarrier() : $shippingAddress->getShippingMethod()
123
+ );
124
}
125
126
$this->paymentMethodManagement->set($cartId, $paymentMethod);
0 commit comments