Skip to content

Commit 654b468

Browse files
author
Tibor Kotosz
authored
Update ConfiguredRegularPrice.php
1 parent cebc94c commit 654b468

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/Catalog/Pricing/Price/ConfiguredRegularPrice.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,8 @@ public function setItem(ItemInterface $item)
7070
public function getValue()
7171
{
7272
$basePrice = parent::getValue();
73-
74-
if ($basePrice === false) {
75-
return $basePrice;
76-
}
7773

78-
return $this->item
74+
return ($this->item && $basePrice !== false)
7975
? $basePrice + $this->configuredOptions->getItemOptionsValue($basePrice, $this->item)
8076
: $basePrice;
8177
}

0 commit comments

Comments
 (0)