Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
2016-04-15 16:53:07 +0800
Commit
5199a17b7550261962225f1ec0c588c1cf638931
1 parent
83b8416b
修复购物车中选择赠品或者加价购商品,结算页计算商品总价报错的bug(不应该通过subtotal计算)
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
5199a17
...
...
@@ -475,7 +475,7 @@ class CartModel
}
// 累加商品金额
$goodsPrice
+=
$
single
[
'subtotal
'
];
$goodsPrice
+=
$
oneGoods
[
'count'
]
*
$oneGoods
[
'price
'
];
$result
[
'goods'
][]
=
$oneGoods
;
}
...
...
Please
register
or
login
to post a comment