Skip to content

Commit f3c39e5

Browse files
committed
ACP2E-1121: PayPal Guest checkout Customer Email wrong graphql
1 parent 7f5e674 commit f3c39e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Quote/Model/QuoteManagement.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,9 @@ public function placeOrder($cartId, PaymentInterface $paymentMethod = null)
412412
if ($quote->getCheckoutMethod() === self::METHOD_GUEST || !$customerId) {
413413
$quote->setCustomerId(null);
414414
$billingAddress = $quote->getBillingAddress();
415-
$quote->setCustomerEmail($billingAddress ? $billingAddress->getEmail() : null);
415+
if (!$quote->getCustomerEmail()) {
416+
$quote->setCustomerEmail($billingAddress ? $billingAddress->getEmail() : null);
417+
}
416418
if ($quote->getCustomerFirstname() === null
417419
&& $quote->getCustomerLastname() === null
418420
&& $billingAddress

0 commit comments

Comments
 (0)