PG 모바일 쿠폰 사용 오류 수정
This commit is contained in:
@ -2172,6 +2172,28 @@ function cart_item_clean()
|
|||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 모바일 PG 주문 필드 생성
|
||||||
|
function make_order_field($data, $exclude)
|
||||||
|
{
|
||||||
|
$field = '';
|
||||||
|
|
||||||
|
foreach($data as $key=>$value) {
|
||||||
|
if(in_array($key, $exclude))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if(is_array($value)) {
|
||||||
|
foreach($value as $k=>$v) {
|
||||||
|
$field .= '<input type="hidden" name="'.$key.'['.$k.']" value="'.$v.'">'.PHP_EOL;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$field .= '<input type="hidden" name="'.$key.'" value="'.$value.'">'.PHP_EOL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $field;
|
||||||
|
}
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// 쇼핑몰 라이브러리 모음 끝
|
// 쇼핑몰 라이브러리 모음 끝
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|||||||
@ -64,12 +64,7 @@ $exclude = array('res_cd', 'P_HASH', 'P_TYPE', 'P_AUTH_DT', 'P_AUTH_NO', 'P_HPP_
|
|||||||
|
|
||||||
echo '<form name="forderform" method="post" action="'.$order_action_url.'" autocomplete="off">'.PHP_EOL;
|
echo '<form name="forderform" method="post" action="'.$order_action_url.'" autocomplete="off">'.PHP_EOL;
|
||||||
|
|
||||||
foreach($data as $key=>$value) {
|
echo make_order_field($data, $exclude);
|
||||||
if(in_array($key, $exclude))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
echo '<input type="hidden" name="'.$key.'" value="'.$value.'">'.PHP_EOL;
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '<input type="hidden" name="res_cd" value="'.$PAY['P_STATUS'].'">'.PHP_EOL;
|
echo '<input type="hidden" name="res_cd" value="'.$PAY['P_STATUS'].'">'.PHP_EOL;
|
||||||
echo '<input type="hidden" name="P_HASH" value="'.$hash.'">'.PHP_EOL;
|
echo '<input type="hidden" name="P_HASH" value="'.$hash.'">'.PHP_EOL;
|
||||||
|
|||||||
@ -50,12 +50,7 @@ $exclude = array('res_cd', 'P_HASH', 'P_TYPE', 'P_AUTH_DT', 'P_VACT_BANK');
|
|||||||
|
|
||||||
echo '<form name="forderform" method="post" action="'.$order_action_url.'" autocomplete="off">'.PHP_EOL;
|
echo '<form name="forderform" method="post" action="'.$order_action_url.'" autocomplete="off">'.PHP_EOL;
|
||||||
|
|
||||||
foreach($data as $key=>$value) {
|
echo make_order_field($data, $exclude);
|
||||||
if(in_array($key, $exclude))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
echo '<input type="hidden" name="'.$key.'" value="'.$value.'">'.PHP_EOL;
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '<input type="hidden" name="res_cd" value="'.$PAY['P_STATUS'].'">'.PHP_EOL;
|
echo '<input type="hidden" name="res_cd" value="'.$PAY['P_STATUS'].'">'.PHP_EOL;
|
||||||
echo '<input type="hidden" name="P_HASH" value="'.$hash.'">'.PHP_EOL;
|
echo '<input type="hidden" name="P_HASH" value="'.$hash.'">'.PHP_EOL;
|
||||||
|
|||||||
@ -222,12 +222,7 @@ if($enc_data != '' && $enc_info != '' && $tran_cd != '') {
|
|||||||
|
|
||||||
echo '<form name="forderform" method="post" action="'.$order_action_url.'" autocomplete="off">'.PHP_EOL;
|
echo '<form name="forderform" method="post" action="'.$order_action_url.'" autocomplete="off">'.PHP_EOL;
|
||||||
|
|
||||||
foreach($data as $key=>$value) {
|
echo make_order_field($data, $exclude);
|
||||||
if(in_array($key, $exclude))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
echo '<input type="hidden" name="'.$key.'" value="'.$value.'">'.PHP_EOL;
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach($_POST as $key=>$value) {
|
foreach($_POST as $key=>$value) {
|
||||||
echo '<input type="hidden" name="'.$key.'" value="'.$value.'">'.PHP_EOL;
|
echo '<input type="hidden" name="'.$key.'" value="'.$value.'">'.PHP_EOL;
|
||||||
|
|||||||
@ -52,12 +52,7 @@ $exclude = array('res_cd', 'LGD_PAYKEY');
|
|||||||
|
|
||||||
echo '<form name="forderform" method="post" action="'.$order_action_url.'" autocomplete="off">'.PHP_EOL;
|
echo '<form name="forderform" method="post" action="'.$order_action_url.'" autocomplete="off">'.PHP_EOL;
|
||||||
|
|
||||||
foreach($data as $key=>$value) {
|
echo make_order_field($data, $exclude);
|
||||||
if(in_array($key, $exclude))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
echo '<input type="hidden" name="'.$key.'" value="'.$value.'">'.PHP_EOL;
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '<input type="hidden" name="res_cd" value="'.$LGD_RESPCODE.'">'.PHP_EOL;
|
echo '<input type="hidden" name="res_cd" value="'.$LGD_RESPCODE.'">'.PHP_EOL;
|
||||||
echo '<input type="hidden" name="LGD_PAYKEY" value="'.$LGD_PAYKEY.'">'.PHP_EOL;
|
echo '<input type="hidden" name="LGD_PAYKEY" value="'.$LGD_PAYKEY.'">'.PHP_EOL;
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||||
|
|
||||||
|
//print_r2($_POST); exit;
|
||||||
|
|
||||||
$page_return_url = G5_SHOP_URL.'/orderform.php';
|
$page_return_url = G5_SHOP_URL.'/orderform.php';
|
||||||
if(get_session('ss_direct'))
|
if(get_session('ss_direct'))
|
||||||
$page_return_url .= '?sw_direct=1';
|
$page_return_url .= '?sw_direct=1';
|
||||||
|
|||||||
Reference in New Issue
Block a user