找到lib_goods.php第147行,代码

$sql = 'SELECT g.goods_id, g.goods_name, g.shop_price,g.goods_thumb, SUM(og.goods_number) as goods_number ' .

1.替换一下代码

$sql = 'SELECT g.goods_id, g.goods_name, g.shop_price,g.promote_price,g.goods_thumb, SUM(og.goods_number) as goods_number ' .

2.第171行,$arr[$i]['price'] = price_format($arr[$i]['shop_price']); 替换为以下代码

if($arr[$i]['promote_price'] !='0.00'){
            $arr[$i]['price'] = price_format($arr[$i]['promote_price']);    
        }else{
            $arr[$i]['price'] = price_format($arr[$i]['shop_price']);    
        }

 

相关文章:

  • 2021-12-03
  • 2021-10-13
  • 2021-11-28
  • 2021-09-17
  • 2022-12-23
  • 2021-08-31
  • 2022-01-23
  • 2022-01-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案