Skip to content

Commit 06b2026

Browse files
Merge remote-tracking branch '39321/set-correct-price-on-quote-item' into comprs_june
2 parents 3a637d8 + 203f2c2 commit 06b2026

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/code/Magento/Checkout/CustomerData/DefaultItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function doGetItemData()
8484
{
8585
$imageHelper = $this->imageHelper->init($this->getProductForThumbnail(), 'mini_cart_product_thumbnail');
8686
$productName = $this->escaper->escapeHtml($this->item->getProduct()->getName());
87-
87+
$this->item->setConvertedPrice($this->item->getPrice());
8888
return [
8989
'options' => $this->getOptionList(),
9090
'qty' => $this->item->getQty() * 1,

app/code/Magento/Tax/Model/Sales/Total/Quote/CommonTaxCollector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,7 @@ protected function processAppliedTaxes(
746746
*/
747747
public function updateItemTaxInfo($quoteItem, $itemTaxDetails, $baseItemTaxDetails, $store)
748748
{
749-
//The price should be base price
750-
$quoteItem->setPrice($baseItemTaxDetails->getPrice());
749+
$quoteItem->setPrice($itemTaxDetails->getPrice());
751750
if ($quoteItem->getCustomPrice() && $this->taxHelper->applyTaxOnCustomPrice()) {
752751
$quoteItem->setCustomPrice($itemTaxDetails->getPrice());
753752
}

0 commit comments

Comments
 (0)