Skip to content

Commit ddcab15

Browse files
author
Oleksii Korshenko
committed
MAGETWO-81994: Products added to cart with REST API give total prices equal to zero #11458
- Merge Pull Request #11458 from peterjaap/magento2:fix-for-issue-2991 - Merged commits: 1. 80ed833 2. 24d6a57 3. a19eeb2 4. 846f117
2 parents 08ec8ce + 846f117 commit ddcab15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ public function createEmptyCart()
232232
$quote->setShippingAddress($this->quoteAddressFactory->create());
233233

234234
try {
235+
$quote->getShippingAddress()->setCollectShippingRates(true);
236+
235237
$this->quoteRepository->save($quote);
236238
} catch (\Exception $e) {
237239
throw new CouldNotSaveException(__('Cannot create quote'));

0 commit comments

Comments
 (0)