Sfoglia il codice sorgente

购物车的两个价格

lizhen_gitee 2 mesi fa
parent
commit
8d3733da6b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      addons/unishop/controller/Cart.php

+ 2 - 2
addons/unishop/controller/Cart.php

@@ -105,8 +105,8 @@ class Cart extends Base
             $tempData['number'] = $item['number'];
 
             $tempData['image'] = Config::getImagesFullUrl($tempData['image']);
-//            $tempData['oldPrice'] = round($oldData['sales_price'], 2);
-//            $tempData['nowPrice'] = round($tempData['sales_price'], 2);
+            $tempData['oldPrice'] = round($tempData['sales_price'], 2);
+            $tempData['nowPrice'] = round($tempData['sales_price'], 2);
             //新增此商品总价
             $tempData['Price_total'] = bcmul($tempData['sales_price'],$tempData['number'],2);
             //已选中商品,总价格