Skip to content

Commit

Permalink
MAGETWO-48570: [GitHub] Totals = 0 for product that was added by cust…
Browse files Browse the repository at this point in the history
…omer using API #2991
  • Loading branch information
irenelagno committed Mar 21, 2016
1 parent b3a13b8 commit bdd8d3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Quote/Model/Quote/Item/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function save(\Magento\Quote\Api\Data\CartItemInterface $cartItem)
throw new \Magento\Framework\Exception\LocalizedException(__($cartItem));
}
}
$quote->getShippingAddress()->setCollectShippingRates(true);
$this->quoteRepository->save($quote->collectTotals());
} catch (\Exception $e) {
if ($e instanceof NoSuchEntityException || $e instanceof LocalizedException) {
Expand Down

2 comments on commit bdd8d3b

@hemal108
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue still exists for Magento 2.1 setup.
Here there is a major code change in the model and repository

@irenelagno
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hemal108 , thank you for your comment. I'll try to reproduce this issue.

Please sign in to comment.