Skip to content

Commit c1077a3

Browse files
Ievgen ShakhsuvarovSerhiy Shkolyarenko
authored andcommitted
MAGETWO-33580: There is no ability to place order for guest customer using API service
- Build stabilization
1 parent 5b4f994 commit c1077a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function placeOrder($cartId)
237237
{
238238
$quote = $this->quoteRepository->getActive($cartId);
239239

240-
if ($quote->getCheckoutMethod() == \Magento\Checkout\Model\Type\Onepage::METHOD_GUEST) {
240+
if ($quote->getCheckoutMethod() === 'guest') {
241241
$quote->setCustomerId(null);
242242
$quote->setCustomerEmail($quote->getBillingAddress()->getEmail());
243243
$quote->setCustomerIsGuest(true);

0 commit comments

Comments
 (0)