Skip to content

Commit 5a0ede6

Browse files
committed
Product's price is not correct inside wishlist when custom option is selected
1 parent be4c4e0 commit 5a0ede6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Wishlist/Pricing/ConfiguredPrice/ConfigurableProduct.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ public function getConfiguredRegularAmount(): \Magento\Framework\Pricing\Amount\
5757
*/
5858
public function getValue()
5959
{
60-
$price = $this->getProduct()->getPriceInfo()->getPrice(self::PRICE_CODE)->getValue();
61-
60+
$price = $this->getProduct()->getMinimalPrice();
61+
if(!$price) {
62+
$price = $this->getProduct()->getPriceInfo()->getPrice(self::PRICE_CODE)->getValue();
63+
}
6264
return max(0, $price);
6365
}
6466

0 commit comments

Comments
 (0)