[버그] 장바구니에 닮긴 내용이 확인되지 않을 때 이렇게 하세요.
짧은주소
- - 짧은주소: 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,215 | 0 | |
258 |
![]() ![]() |
2017.05.11 | 1,018 | 0 | |
257 |
![]() |
2017.04.26 | 2,027 | 0 | |
256 |
![]() |
2017.04.19 | 1,331 | 0 | |
255 |
![]() ![]() |
2017.04.09 | 942 | 0 | |
254 |
![]() |
2017.03.23 | 1,467 | 0 | |
253 |
![]() ![]() |
2017.03.10 | 1,115 | 0 | |
252 |
![]() ![]() |
2017.02.03 | 1,162 | 0 | |
251 |
![]() |
2016.11.28 | 1,284 | 0 | |
250 |
![]() |
2016.09.13 | 1,417 | 0 | |
249 |
![]() |
2016.09.01 | 1,544 | 0 | |
248 |
![]() |
2016.08.23 | 1,272 | 0 | |
247 |
![]() |
2016.08.12 | 5,096 | 0 | |
열람 |
![]() |
2016.07.21 | 1,635 | 0 | |
245 |
![]() |
2016.07.14 | 1,663 | 0 | |
244 |
![]() |
2016.07.14 | 1,389 | 0 | |
243 |
![]() |
2016.07.11 | 2,099 | 0 | |
242 |
![]() ![]() |
2016.06.27 | 1,498 | 0 | |
241 |
![]() ![]() |
2016.06.21 | 1,196 | 0 | |
240 |
![]() ![]() |
2016.06.14 | 2,230 | 0 |
댓글목록
등록된 댓글이 없습니다.