Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
7c1f68e5c1ff279ea454d819fe77f556b22a354f
1 parent
982abb3e
修复结算页面赠品的价格显示(显示为0.00)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
7c1f68e
...
...
@@ -413,6 +413,7 @@ class CartModel
//gift=>是否赠品,advanceBuy=>是否加价购;
if
(
$single
[
'goods_type'
]
==
'gift'
&&
!
isset
(
$single
[
'isAdvanceBuy'
]))
{
$oneGoods
[
'gift'
]
=
true
;
$oneGoods
[
'price'
]
=
Helpers
::
transPrice
(
$single
[
'sale_price'
]);
}
elseif
(
$single
[
'goods_type'
]
==
'price_gift'
)
{
$oneGoods
[
'advanceBuy'
]
=
true
;
$oneGoods
[
'price'
]
=
Helpers
::
transPrice
(
$single
[
'sale_price'
]);
...
...
Please
register
or
login
to post a comment