We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1575f7 commit c717b34Copy full SHA for c717b34
app/code/Magento/Bundle/Pricing/Price/ConfiguredPrice.php
@@ -150,11 +150,9 @@ public function getConfiguredAmount($baseValue = 0.)
150
*/
151
public function getValue()
152
{
153
- if ($this->item) {
+ if ($this->item && $this->item->getProduct()->getId()) {
154
$configuredOptionsAmount = $this->getConfiguredAmount()->getBaseAmount();
155
- if (!empty($this->item->getProduct())) {
156
- return parent::getValue() + $this->discountCalculator->calculateDiscount($this->item->getProduct(), $configuredOptionsAmount);
157
- }
+ return parent::getValue() + $this->discountCalculator->calculateDiscount($this->item->getProduct(), $configuredOptionsAmount);
158
}
159
return parent::getValue();
160
0 commit comments