Skip to content

Commit d769af0

Browse files
author
Valeriy Nayda
committed
MAGETWO-52017: Bundle product price absent in shopping cart product grid
1 parent 08947e7 commit d769af0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/code/Magento/Bundle/Model/Product/Price.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ public function getFinalPrice($qty, $product)
183183
$finalPrice = $this->_applyOptionsPrice($product, $qty, $finalPrice);
184184
$finalPrice += $this->getTotalBundleItemsPrice($product, $qty);
185185

186+
$finalPrice = max(0, $finalPrice);
186187
$product->setFinalPrice($finalPrice);
187-
return max(0, $product->getData('final_price'));
188+
return $finalPrice;
188189
}
189190

190191
/**

app/code/Magento/Eav/Model/ResourceModel/CreateHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
/**
1616
* Class CreateHandler
17+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1718
*/
1819
class CreateHandler implements AttributeInterface
1920
{
@@ -87,6 +88,7 @@ protected function getAttributes($entityType)
8788
* @return array
8889
* @throws \Exception
8990
* @throws \Magento\Framework\Exception\ConfigurationMismatchException
91+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
9092
*/
9193
public function execute($entityType, $entityData, $arguments = [])
9294
{

0 commit comments

Comments
 (0)