Loading the content...

버그 & 건의

  • Home
  • 이윰빌더
  • 버그 & 건의

[버그] 장바구니에 닮긴 내용이 확인되지 않을 때 이렇게 하세요.

1,341 2016.07.21 19:45

짧은주소

본문

/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);

 

 

0
좋아요!
- 온보씨 메일보내기 아이디로 검색 - 회원등급 : 씨앗/Level 1 - 포인트 : 550
레벨 1
경험치 11

Progress Bar 6%

- 가입일 : 2016-07-21 19:42:23
- 서명 : 온라인 홍보는 온보씨에게.
- 자기소개 : 반갑습니다
댓글목록

등록된 댓글이 없습니다.

Total 1건 1 페이지