[버그] 장바구니에 닮긴 내용이 확인되지 않을 때 이렇게 하세요.
짧은주소
- - 짧은주소: http://v2.eyoom.net/bbs/?t=2ZK 주소복사
본문
/www/eyoom/core/shop/cart.php 49라인 근처에서 사용하지 않는 mysql_fetch_array() 함수가 사용되어 있습니다. 이 부분을 sql_fetch_array로 변경하시면 됩니다.
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
// 합계금액 계산
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
SUM(ct_point * ct_qty) as point,
SUM(ct_qty) as qty
from {$g5['g5_shop_cart_table']}
where it_id = '{$row['it_id']}'
and od_id = '$s_cart_id' ";
아래와 같이 변경하세요.
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 합계금액 계산
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
SUM(ct_point * ct_qty) as point,
SUM(ct_qty) as qty
from {$g5['g5_shop_cart_table']}
where it_id = '{$row['it_id']}'
and od_id = '$s_cart_id' ";
$sum = sql_fetch($sql);
좋아요!
Progress Bar 6%
번호 | 제목 | 글쓴이 | 날짜 | 뷰 | 추천 |
---|---|---|---|---|---|
19 |
![]() ![]() |
2016.06.14 | 1,847 | 0 | |
18 |
![]() ![]() |
2016.06.21 | 962 | 0 | |
17 |
![]() ![]() |
2016.06.27 | 1,231 | 0 | |
16 |
![]() |
2016.07.11 | 1,801 | 0 | |
15 |
![]() |
2016.07.14 | 1,151 | 0 | |
14 |
![]() |
2016.07.14 | 1,359 | 0 | |
열람 |
![]() |
2016.07.21 | 1,357 | 0 | |
12 |
![]() |
2016.08.12 | 4,020 | 0 | |
11 |
![]() |
2016.08.23 | 1,100 | 0 | |
10 |
![]() |
2016.09.01 | 1,292 | 0 | |
9 |
![]() |
2016.09.13 | 1,188 | 0 | |
8 |
![]() |
2016.11.28 | 982 | 0 | |
7 |
![]() ![]() |
2017.02.03 | 928 | 0 | |
6 |
![]() ![]() |
2017.03.10 | 805 | 0 | |
5 |
![]() |
2017.03.23 | 952 | 0 | |
4 |
![]() ![]() |
2017.04.09 | 720 | 0 | |
3 |
![]() |
2017.04.19 | 1,045 | 0 | |
2 |
![]() |
2017.04.26 | 1,720 | 0 | |
1 |
![]() ![]() |
2017.05.11 | 826 | 0 |
댓글목록
등록된 댓글이 없습니다.