Skip to content

Commit d07e184

Browse files
MAGETWO-96429: Wrong special price displayed in product search results
- Return final price if we haven't special price.
1 parent 88d06ca commit d07e184

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Catalog/Model/Product/Type/FrontSpecialPrice.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ public function __construct(
6969
*/
7070
protected function _applySpecialPrice($product, $finalPrice)
7171
{
72+
if (!$product->getSpecialPrice()) {
73+
return $finalPrice;
74+
}
75+
7276
$specialPrices = $this->getSpecialPrices($product);
7377
$specialPrice = !(empty($specialPrices)) ? min($specialPrices) : $product->getSpecialPrice();
7478

0 commit comments

Comments
 (0)