Skip to content

Commit 389a16b

Browse files
authored
ENGCOM-3257: Collect totals in placeOrder when no paymentMethod provided #18768
1 parent 7bc9c31 commit 389a16b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class QuoteManagement implements \Magento\Quote\Api\CartManagementInterface
159159
* @param \Magento\Quote\Api\CartRepositoryInterface $quoteRepository
160160
* @param \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository
161161
* @param \Magento\Customer\Model\CustomerFactory $customerModelFactory
162-
* @param \Magento\Quote\Model\Quote\AddressFactory $quoteAddressFactory,
162+
* @param \Magento\Quote\Model\Quote\AddressFactory $quoteAddressFactory
163163
* @param \Magento\Framework\Api\DataObjectHelper $dataObjectHelper
164164
* @param StoreManagerInterface $storeManager
165165
* @param \Magento\Checkout\Model\Session $checkoutSession
@@ -221,7 +221,7 @@ public function __construct(
221221
}
222222

223223
/**
224-
* {@inheritdoc}
224+
* @inheritdoc
225225
*/
226226
public function createEmptyCart()
227227
{
@@ -241,7 +241,7 @@ public function createEmptyCart()
241241
}
242242

243243
/**
244-
* {@inheritdoc}
244+
* @inheritdoc
245245
*/
246246
public function createEmptyCartForCustomer($customerId)
247247
{
@@ -257,7 +257,7 @@ public function createEmptyCartForCustomer($customerId)
257257
}
258258

259259
/**
260-
* {@inheritdoc}
260+
* @inheritdoc
261261
*/
262262
public function assignCustomer($cartId, $customerId, $storeId)
263263
{
@@ -332,7 +332,7 @@ protected function createCustomerCart($customerId, $storeId)
332332
}
333333

334334
/**
335-
* {@inheritdoc}
335+
* @inheritdoc
336336
*/
337337
public function placeOrder($cartId, PaymentInterface $paymentMethod = null)
338338
{
@@ -381,7 +381,7 @@ public function placeOrder($cartId, PaymentInterface $paymentMethod = null)
381381
}
382382

383383
/**
384-
* {@inheritdoc}
384+
* @inheritdoc
385385
*/
386386
public function getCartForCustomer($customerId)
387387
{
@@ -408,6 +408,8 @@ public function submit(QuoteEntity $quote, $orderData = [])
408408
}
409409

410410
/**
411+
* Convert quote items to order items for quote
412+
*
411413
* @param Quote $quote
412414
* @return array
413415
*/

0 commit comments

Comments
 (0)