Skip to content

Commit 67a48c4

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-53170: Add/Remove product actions are not observed by update cart qty event
1 parent 6a1d203 commit 67a48c4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ protected function doGetItemData()
7575
'product_url' => $this->getProductUrl(),
7676
'product_has_url' => $this->hasProductUrl(),
7777
'product_price' => $this->checkoutHelper->formatPrice($this->item->getCalculationPrice()),
78+
'product_price_value' => $this->item->getCalculationPrice(),
7879
'product_image' => [
7980
'src' => $imageHelper->getUrl(),
8081
'alt' => $imageHelper->getLabel(),

app/code/Magento/Checkout/Test/Unit/CustomerData/DefaultItemTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function testGetItemData()
8585
$this->assertArrayHasKey('product_url', $itemData);
8686
$this->assertArrayHasKey('product_has_url', $itemData);
8787
$this->assertArrayHasKey('product_price', $itemData);
88+
$this->assertArrayHasKey('product_price_value', $itemData);
8889
$this->assertArrayHasKey('product_image', $itemData);
8990
$this->assertArrayHasKey('canApplyMsrp', $itemData);
9091
}

0 commit comments

Comments
 (0)