[버그] 장바구니에 닮긴 내용이 확인되지 않을 때 이렇게 하세요.
짧은주소
- - 짧은주소: 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%
번호 | 제목 | 글쓴이 | 날짜 | 뷰 | 추천 |
---|---|---|---|---|---|
공지 |
![]() ![]() |
2015.03.02 | 2,182 | 0 | |
258 |
![]() ![]() |
2017.05.11 | 965 | 0 | |
257 |
![]() |
2017.04.26 | 1,936 | 0 | |
256 |
![]() |
2017.04.19 | 1,236 | 0 | |
255 |
![]() ![]() |
2017.04.09 | 875 | 0 | |
254 |
![]() |
2017.03.23 | 1,366 | 0 | |
253 |
![]() ![]() |
2017.03.10 | 1,017 | 0 | |
252 |
![]() ![]() |
2017.02.03 | 1,100 | 0 | |
251 |
![]() |
2016.11.28 | 1,183 | 0 | |
250 |
![]() |
2016.09.13 | 1,315 | 0 | |
249 |
![]() |
2016.09.01 | 1,445 | 0 | |
248 |
![]() |
2016.08.23 | 1,202 | 0 | |
247 |
![]() |
2016.08.12 | 4,931 | 0 | |
열람 |
![]() |
2016.07.21 | 1,533 | 0 | |
245 |
![]() |
2016.07.14 | 1,534 | 0 | |
244 |
![]() |
2016.07.14 | 1,325 | 0 | |
243 |
![]() |
2016.07.11 | 1,966 | 0 | |
242 |
![]() ![]() |
2016.06.27 | 1,430 | 0 | |
241 |
![]() ![]() |
2016.06.21 | 1,136 | 0 | |
240 |
![]() ![]() |
2016.06.14 | 2,103 | 0 |
댓글목록
등록된 댓글이 없습니다.