Esempio n. 1
0
<?php

include_once './_common.php';
set_session("ss_direct", $sw_direct);
// 장바구니가 비어있는가?
if ($sw_direct) {
    $tmp_cart_id = get_session("ss_cart_direct");
} else {
    $tmp_cart_id = get_session("ss_cart_id");
}
if (get_cart_count($tmp_cart_id) == 0) {
    alert('장바구니가 비어 있습니다.', G5_SHOP_URL . '/cart.php');
}
$g5['title'] = '주문서 작성';
include_once G5_MSHOP_PATH . '/_head.php';
if ($default['de_hope_date_use']) {
    include_once G5_PLUGIN_PATH . '/jquery-ui/datepicker.php';
}
// 새로운 주문번호 생성
$od_id = get_uniqid();
set_session('ss_order_id', $od_id);
$s_cart_id = $tmp_cart_id;
$order_action_url = G5_HTTPS_MSHOP_URL . '/orderformupdate.php';
require_once G5_MSHOP_PATH . '/settle_' . $default['de_pg_service'] . '.inc.php';
// 결제등록 요청시 사용할 입금마감일
$ipgm_date = date("Ymd", G5_SERVER_TIME + 86400 * 5);
$tablet_size = "1.0";
// 화면 사이즈 조정 - 기기화면에 맞게 수정(갤럭시탭,아이패드 - 1.85, 스마트폰 - 1.0)
// 개인결제번호제거
set_session('ss_personalpay_id', '');
set_session('ss_personalpay_hash', '');
Esempio n. 2
0
        alert('결제등록 요청 후 주문해 주십시오.', $page_return_url);

    if($default['de_pg_service'] == 'lg' && !$_POST['LGD_PAYKEY'])
        alert('결제등록 요청 후 주문해 주십시오.', $page_return_url);

    if($default['de_pg_service'] == 'inicis' && !$_POST['P_HASH'])
        alert('결제등록 요청 후 주문해 주십시오.', $page_return_url);
}

// 장바구니가 비어있는가?
if (get_session('ss_direct'))
    $tmp_cart_id = get_session('ss_cart_direct');
else
    $tmp_cart_id = get_session('ss_cart_id');

if (get_cart_count($tmp_cart_id) == 0)// 장바구니에 담기
    alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', G5_SHOP_URL.'/cart.php');

$error = "";
// 장바구니 상품 재고 검사
$sql = " select it_id,
                ct_qty,
                it_name,
                io_id,
                io_type,
                ct_option
           from {$g5['g5_shop_cart_table']}
          where od_id = '$tmp_cart_id'
            and ct_select = '1' ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)