[쇼핑몰] 배송번호 입력시 자동 완료 처리 > 팁앤테크

본문 바로가기

사이트 내 전체검색

뒤로가기 팁앤테크

[쇼핑몰] 배송번호 입력시 자동 완료 처리

본문

adm/shop_admin/orderform.main.php
******************************
<?
// 이 프로그램은 orderform.php 에서 include 된 프로그램입니다.

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가


// PG사를 KCP 사용하면서 테스트 상점아이디라면
if ($default[de_card_pg] == 'kcp' && $default[de_kcp_mid] == 'T0007')
    $g4[yc4_cardpg][kcp] = "http://admin.dev.kcp.co.kr"; // 로그인 아이디/비번 : escrow/escrow
else if ($default[de_card_pg] == 'dacom' && $default[de_dacom_mid] == 'tlinkret')
    $g4[yc4_cardpg][dacom] = "http://pgweb.dacom.net:7085/index.jsp"; // 로그인 아이디/비번 : tlinkret/tlinkret


$sql = " select a.ct_id,
                a.it_id,
                a.ct_qty,
                a.ct_amount,
                a.ct_point,
                a.ct_status,
                a.ct_time,
                a.ct_point_use,
                a.ct_stock_use,
                a.ct_currency,
                a.it_opt1,
                a.it_opt2,
                a.it_opt3,
                a.it_opt4,
                a.it_opt5,
                a.it_opt6,
                b.it_name,
                b.it_productname
           from $g4[yc4_cart_table] a, $g4[yc4_item_table] b
          where a.on_uid = '$od[on_uid]'
            and a.it_id  = b.it_id
          order by a.ct_id ";
$result = sql_query($sql);

if($od[od_invoice]) {
$sql = " update $g4[yc4_cart_table]
            set ct_status  = '완료'
          where ct_status in ('주문', '준비', '배송') ";
sql_query($sql);
}
?>
추천0

댓글목록 0

등록된 댓글이 없습니다.

전체 29건 1 페이지
게시물 검색
Copyright (c) 株式会社YHPLUS. All rights reserved.

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒171-0014 東京都豊島区池袋2-41-5 アーバン154 8F
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

PC 버전으로 보기