Skip to content

Commit ca13fdd

Browse files
Derrick HeesbeenDerrick Heesbeen
authored andcommitted
[BUGFIX] Fixed issue with orders with virtual products only and no shipping address
1 parent fe86d50 commit ca13fdd

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Observer/Sales/ModelServiceQuoteSubmitBefore.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ public function execute(
4444
'extra_checkout_billing_address_fields'
4545
);
4646

47-
$this->helper->transportFieldsFromExtensionAttributesToObject(
48-
$quote->getShippingAddress(),
49-
$order->getShippingAddress(),
50-
'extra_checkout_shipping_address_fields'
51-
);
47+
if ($order->getShippingAddress()) {
48+
$this->helper->transportFieldsFromExtensionAttributesToObject(
49+
$quote->getShippingAddress(),
50+
$order->getShippingAddress(),
51+
'extra_checkout_shipping_address_fields'
52+
);
53+
}
5254
}
5355
}

0 commit comments

Comments
 (0)