영카트 장바구니 질문 함수

영카트 장바구니 질문 함수

QA

영카트 장바구니 질문 함수

본문

영카트5 장바구니부분을 만져보고있는데요.

 

 

/shop/cart.php 부분에서 $it_options쪽을 수정하고 있는데

 

요부분이 <ul><li>함수안에 들어가 있어서 함수를 지우려고 찾아보니 

 

/js/shop.js 와 /cartupdate.php 

lib/shop.lib.php 부분을 다 확인해봐도 감싸고 있는 ul 함수가 안보여요.

 

어디서 확인해야할까요

이 질문에 댓글 쓰기 :

답변 1

lib/shop.lib.php 파일에 있던데요.

 

function print_item_options($it_id, $cart_id)
{
    global $g5;

    $sql = " select ct_option, ct_qty, io_price
                from {$g5['g5_shop_cart_table']} where it_id = '$it_id' and od_id = '$cart_id' order by io_type asc, ct_id asc ";
    $result = sql_query($sql);

    $str = '';
    for($i=0; $row=sql_fetch_array($result); $i++) {
        if($i == 0)
            $str .= '<ul>'.PHP_EOL;
        $price_plus = '';
        if($row['io_price'] >= 0)
            $price_plus = '+';
        $str .= '<li>'.get_text($row['ct_option']).' '.$row['ct_qty'].'개 ('.$price_plus.display_price($row['io_price']).')</li>'.PHP_EOL;
    }

    if($i > 0)
        $str .= '</ul>';

    return $str;
}

답변을 작성하시기 전에 로그인 해주세요.
전체 1,096
QA 내용 검색
filter #html ×

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT