-
영카트 바로구매시 장바구니에 바로 추가하기그누보드 2021. 3. 4. 17:55
영카트 바로구매하기는 기본적으로 장바구니 테이블에 바로 담기지만 플래그값과 주문번호가 다르기떄문에 다른 주문번호를 찾아 플래그값을 변경하여주면된다
/shop/cart.php
//장바구니 주문번호
$s_cart_id = get_session('ss_cart_id');
//바로구매 장바구니 주문번호
$tmp_cart_id = get_session('ss_cart_direct');
$tmpSql = " update {$g5['g5_shop_cart_table']} set ct_select = '0', ct_direct = '0', od_id ='$s_cart_id' where od_id = '$tmp_cart_id' ";
sql_query($tmpSql);
//바로구매 장바구니 주문번호를 찾아 현재 장바구니 주문번호로 변경하며 플래그값을 변경하여 준다.
ct_direct = 1
//바로구매
ct_direct = 0
//장바구니
'그누보드' 카테고리의 다른 글
mysql 용량 확보 (0) 2021.01.29 게시판리스트 첨부파일 다운로드 (0) 2021.01.28 스마트 에디터 글꼴 추가 (0) 2021.01.28 인스타그램 api 연동 소스2 (0) 2021.01.28 그누보드 회원가입 아이디 중복확인 비밀번호 숫자영문특수문자조합체크 (0) 2021.01.28