shish 3 lat temu
rodzic
commit
15c90b8a8c
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      biz-ghs/product/classes/ProductClass.php

+ 3 - 2
biz-ghs/product/classes/ProductClass.php

@@ -134,9 +134,10 @@ class ProductClass extends BaseClass
 
             //零售做特价时的原价
             if ($level == 0) {
-                $currentAddPriceField = $addPriceMap[$level] ?? 'addPrice';
-                $currentAddPrice = $v[$currentAddPriceField] ?? 0;
+                $currentAddPrice = $v['skMore'] ?? 0;
                 $list[$k]['prePrice'] = bcadd($v['price'], $currentAddPrice, 2);
+                //改价列表显示的散客价【重要】
+                $list[$k]['skPrice'] = bcadd($price, $currentAddPrice, 2);
             }
 
             $list[$k]['price'] = $price;