diff --git a/Model/Quote/SetQuoteAddresses.php b/Model/Quote/SetQuoteAddresses.php index 199125b0..7013ac1f 100644 --- a/Model/Quote/SetQuoteAddresses.php +++ b/Model/Quote/SetQuoteAddresses.php @@ -94,6 +94,11 @@ public function setAddresses( $quote->setExtensionAttributes($quote->getExtensionAttributes()); $quote->getShippingAddress()->setCollectShippingRates(true); } + + if (!$quote->getCustomerEmail()) { + $quote->setCustomerEmail($billingAddress->getEmail()); + } + $quote->setDataChanges(true); $quote->collectTotals(); $this->quoteResource->save($quote);