Skip to content

Commit 9575e10

Browse files
committed
MC-42443: Row Sub Total is not updated with new price when Price is updated through API
- Fixed the CR comments.
1 parent 5e39346 commit 9575e10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev/tests/integration/testsuite/Magento/Quote/Model/Product/Plugin/UpdateQuoteTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public function testUpdateQuoteRecollectAfterChangeProductPrice(): void
6161
$this->assertNotEmpty($quote->getItems());
6262
$quoteItem = current($quote->getItems());
6363
$product = $quoteItem->getProduct();
64+
$quoteItem->setProductId($product->getRowId());
65+
$quote->save();
6466

6567
$tierPrice = $this->tierPriceFactory->create();
6668
$tierPrice->setPrice($product->getPrice());

0 commit comments

Comments
 (0)