fixed price

This commit is contained in:
2026-06-28 10:51:56 +03:30
parent dec13e8537
commit 14055c5770
4 changed files with 28 additions and 48 deletions
+6 -7
View File
@@ -367,13 +367,12 @@ class ProductDisplayPriceService
if ($product instanceof Product) {
if ($this->usesAppPrice($product)) {
$useLast = $this->productUsesLastPriceIfZero($product);
$base = $useLast
? $this->resolveAppBasePrice()
: $this->resolveStrictLiveAppBasePrice();
if ($base <= 0 && $useLast) {
return $this->resolveLastPriceFallback($product);
$base = $this->resolveAppBasePrice();
if ($base <= 0) {
$base = $this->resolveHistoricalBasePrice();
}
if ($base <= 0 && $this->productUsesLastPriceIfZero($product)) {
$base = $this->resolveLastPriceFallback($product);
}
if ($base <= 0) {