[버그] 장바구니에 닮긴 내용이 확인되지 않을 때 이렇게 하세요.
짧은주소
- - 짧은주소: 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%
번호 | 제목 | 글쓴이 | 날짜 | 뷰 | 추천 |
---|---|---|---|---|---|
148 |
![]() |
2017.04.26 | 2,070 | 0 | |
147 |
![]() |
2017.04.19 | 1,370 | 0 | |
146 |
![]() |
2017.03.23 | 1,515 | 0 | |
145 |
![]() ![]() |
2017.03.10 | 1,159 | 0 | |
144 |
![]() |
2016.11.28 | 1,323 | 0 | |
143 |
![]() |
2016.09.13 | 1,458 | 0 | |
142 |
![]() |
2016.09.01 | 1,583 | 0 | |
141 |
![]() |
2016.08.12 | 5,218 | 0 | |
열람 |
![]() |
2016.07.21 | 1,678 | 0 | |
139 |
![]() |
2016.07.14 | 1,707 | 0 | |
138 |
![]() |
2016.07.11 | 2,142 | 0 | |
137 |
![]() ![]() |
2016.06.14 | 2,282 | 0 | |
136 |
![]() |
2016.06.06 | 1,312 | 0 | |
135 |
![]() |
2016.04.28 | 1,250 | 0 | |
134 |
![]() ![]() |
2016.04.21 | 1,549 | 0 | |
133 |
![]() ![]() |
2016.04.14 | 1,416 | 0 | |
132 |
![]() |
2016.03.31 | 1,418 | 0 | |
131 |
![]() |
2016.03.24 | 1,369 | 0 | |
130 |
![]() ![]() |
2016.03.12 | 1,297 | 0 | |
129 |
![]() ![]() |
2016.03.10 | 1,782 | 0 |
댓글목록
등록된 댓글이 없습니다.