영카트 엑셀 일괄등록 질문있습니다.

영카트 엑셀 일괄등록 질문있습니다.

QA

영카트 엑셀 일괄등록 질문있습니다.

답변 1

본문

현재 제 쇼핑몰은 등급별로 가격이 책정이 되고 있는 상태입니다.

 

어느정도 작업이 되어서 엑셀로 한번에 업데이트를 하려고 합니다.

 

itemexcelupdate.php에서 확인하면

 

        $it_price           = addslashes(only_number($data->sheets[0]['cells'][$i][$j++]));
 

이렇게 나와있는게 가격을 입력하는 필드 같은데요.

 

2,3,4등급의 가격을 엑셀로 같이 업로드 하려면

 

        $it_price2           = addslashes(only_number($data->sheets[0]['cells'][$i][$j++]));
        $it_price3           = addslashes(only_number($data->sheets[0]['cells'][$i][$j++]));
        $it_price4           = addslashes(only_number($data->sheets[0]['cells'][$i][$j++]));

 

이런식으로 추가를 해주면 될까요?

 

마찬가지로 

 

        $sql = " INSERT INTO {$g5['g5_shop_item_table']}

 

이 코드를 

 

                         it_price = '$it_price',

 

이 내용과 동일하게 

 

                         it_price2 = '$it_price',
                         it_price3 = '$it_price',
                         it_price4 = '$it_price',

 

이런식으로 처리해주고 엑셀의 필드를 늘려서 가격을 넣어주면 되는건가요?

 

어린중생이 고수님들의 도움의 손길을 기다립니다.

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 100
© SIRSOFT
현재 페이지 제일 처음으로