Browse Source

购物车的两个价格

lizhen_gitee 2 tháng trước cách đây
mục cha
commit
8d3733da6b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);
             //已选中商品,总价格