Skip to content

Commit 78dcdcd

Browse files
committed
Use original price as compare price instead of price
1 parent 83e3f64 commit 78dcdcd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Checker/OnSale/OnSaleChecker.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ private function checkVariant(ProductVariantInterface $variant, ChannelInterface
6060

6161
$appliedPrice = $this->runtimePromotionsApplicator->apply($product, $price, $channelPricing->getOriginalPrice());
6262

63-
return $appliedPrice < $price;
63+
$comparePrice = $channelPricing->getOriginalPrice() ?? $price;
64+
65+
return $appliedPrice < $comparePrice;
6466
}
6567
}

0 commit comments

Comments
 (0)