테스트 사이트 - 개발 중인 베타 버전입니다

반드시 옵션을 입력해야한다는 부분 없애는 건 어떻게 하나요? 채택완료

이지나2 6년 전 조회 2,479

 

구매하기 누르면 옵션을 반드시 입력해야 구매하기로 넘어가게 했었는데요

이부분을 없애려면 아래 소스부분에서 수정해야할거 같은데 어떻게 수정해야하나요?

 

// 보관기간이 지난 상품 삭제 cart_item_clean();

// cart id 설정 set_cart_id($sw_direct);

$s_cart_id = get_session('ss_cart_id'); // 선택필드 초기화 $sql = " update {$g5['g5_shop_cart_table']} set ct_select = '0' where od_id = '$s_cart_id' "; sql_query($sql);

$cart_action_url = G5_SHOP_URL.'/cartupdate.php';

if (G5_IS_MOBILE) {     include_once(G5_MSHOP_PATH.'/cart.php');     return; }

// 테마에 cart.php 있으면 include if(defined('G5_THEME_SHOP_PATH')) {     $theme_cart_file = G5_THEME_SHOP_PATH.'/cart.php';     if(is_file($theme_cart_file)) {         include_once($theme_cart_file);         return;         unset($theme_cart_file);     } }

$g5['title'] = '장바구니'; include_once('./_head.php'); ?>

   

   
                                                                                                                                                       

        // $s_cart_id 로 현재 장바구니 자료 쿼리         $sql = " select a.ct_id,                         a.it_id,                         a.it_name,                         a.ct_price,                         a.ct_point,                         a.ct_qty,                         a.ct_status,                         a.ct_send_cost,                         a.it_sc_type,                         b.ca_id,                         b.ca_id2,                         b.ca_id3,       carnum                    from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )                   where a.od_id = '$s_cart_id' ";         $sql .= " group by a.it_id ";         $sql .= " order by a.ct_id ";         $result = sql_query($sql);

        $it_send_cost = 0;

        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);        // 차대번호    $carnum = $row['carnum'];

   if($carnum !=''){     $carnum_div = '

차대 번호 : '.$carnum.'
';    }else{     $carnum_div = '';    }             if ($i==0) { // 계속쇼핑                 $continue_ca_id = $row['ca_id'];             }

            $a1 = '';             $a2 = '';             $image = get_it_image($row['it_id'], 70, 70);

            $it_name = $a1 . stripslashes($row['it_name']) . $a2;             $it_options = print_item_options($row['it_id'], $s_cart_id);             if($it_options) {                 $mod_options = '

';                 $it_name .= '
'.$it_options.'
';             }

            // 배송비             switch($row['ct_send_cost'])             {                 case 1:                     $ct_send_cost = '착불';                     break;                 case 2:                     $ct_send_cost = '무료';                     break;                 default:                     $ct_send_cost = '선불';                     break;             }

            // 조건부무료             if($row['it_sc_type'] == 2) {                 $sendcost = get_item_sendcost($row['it_id'], $sum['price'], $sum['qty'], $s_cart_id);

                if($sendcost == 0)                     $ct_send_cost = '무료';             }

            $point      = $sum['point'];             $sell_price = $sum['price'];         ?>

       

                                                                                                       

       

        if ($i == 0) {             echo '

';         } else {             // 배송비 계산             $send_cost = get_sendcost($s_cart_id, 0);         }         ?>                
상품이미지상품명총수량판매가소계포인트배송비                                            
                                                                                                                      
장바구니에 담긴 상품이 없습니다.
   

    0 || $send_cost > 0) {     ?>    

        0) { // 배송비가 0 보다 크다면 (있다면) ?>        
배송비
       
       

        0) {         ?>

       

총계 가격/포인트
       
원 /
       

   

   

   

                쇼핑 계속하기                                         쇼핑 계속하기                                   
                   

   

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
유찬아빠

해당폼은 스킨의 item.form.skin.php 에서 수정하셔야 할듯 합니다.

이미 한번 커스트마징 된 듯 보입니다.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

유찬아빠
6년 전
해당 input 테그의 required 라는 문구를 삭제하시면 됩니다.

댓글을 작성하려면 로그인이 필요합니다.

6년 전
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인