Skip to content

Commit e92064a

Browse files
torreytsuimage2pratik
authored andcommitted
Fix zero price simple failed to resolve as default
1 parent ce5eacd commit e92064a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Pricing/Price/ConfigurablePriceResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function resolvePrice(\Magento\Framework\Pricing\SaleableInterface $produ
6464

6565
foreach ($this->lowestPriceOptionsProvider->getProducts($product) as $subProduct) {
6666
$productPrice = $this->priceResolver->resolvePrice($subProduct);
67-
$price = $price ? min($price, $productPrice) : $productPrice;
67+
$price = isset($price) ? min($price, $productPrice) : $productPrice;
6868
}
6969

7070
return (float)$price;

0 commit comments

Comments
 (0)