5.3 버전 내용 적용
This commit is contained in:
@ -19,7 +19,6 @@ set_session('ss_personalpay_hash', '');
|
||||
<?php
|
||||
ob_start();
|
||||
?>
|
||||
<p>주문하실 상품을 확인하세요.</p>
|
||||
|
||||
<ul class="sod_list">
|
||||
<?php
|
||||
@ -98,9 +97,7 @@ ob_start();
|
||||
|
||||
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
if($it_options) {
|
||||
$it_name .= '<div class="sod_opt">'.$it_options.'</div>';
|
||||
}
|
||||
|
||||
|
||||
// 복합과세금액
|
||||
if($default['de_tax_flag_use']) {
|
||||
@ -179,19 +176,21 @@ ob_start();
|
||||
<input type="hidden" name="cp_price[<?php echo $i; ?>]" value="0">
|
||||
<div class="li_name">
|
||||
<?php echo $it_name; ?>
|
||||
<div class="li_mod" style="padding-left:<?php echo $image_width + 20; ?>px;"><?php echo $cp_button; ?></div>
|
||||
<span class="total_img"><?php echo $image; ?></span>
|
||||
|
||||
</div>
|
||||
<div class="li_op_wr">
|
||||
<span class="total_img"><?php echo $image; ?></span>
|
||||
<div class="sod_opt"><?php echo $it_options; ?></div>
|
||||
<div class="li_mod" ><?php echo $cp_button; ?></div>
|
||||
</div>
|
||||
|
||||
<div class="li_prqty">
|
||||
<span class="prqty_price li_prqty_sp"><span>판매가 </span><?php echo number_format($row['ct_price']); ?></span>
|
||||
<span class="prqty_qty li_prqty_sp"><span>수량 </span><?php echo number_format($sum['qty']); ?></span>
|
||||
<span class="prqty_sc li_prqty_sp"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
|
||||
<span class="total_point li_prqty_sp"><span>적립포인트 </span><strong><?php echo number_format($sum['point']); ?></strong></span>
|
||||
|
||||
</div>
|
||||
<div class="li_total">
|
||||
<span class="total_price total_span"><span>주문금액 </span><strong><?php echo number_format($sell_price); ?></strong></span>
|
||||
<span class="total_point total_span"><span>적립포인트 </span><strong><?php echo number_format($sum['point']); ?></strong></span>
|
||||
</div>
|
||||
<div class="total_price total_span"><span>주문금액 </span><strong><?php echo number_format($sell_price); ?></strong></div>
|
||||
|
||||
</li>
|
||||
|
||||
@ -201,7 +200,7 @@ ob_start();
|
||||
} // for 끝
|
||||
|
||||
if ($i == 0) {
|
||||
//echo '<tr><td colspan="'.$colspan.'" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
//echo '<li class="empty_li">장바구니에 담긴 상품이 없습니다.</li>';
|
||||
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
|
||||
} else {
|
||||
// 배송비 계산
|
||||
@ -218,23 +217,30 @@ ob_start();
|
||||
|
||||
<?php if ($goods_count) $goods .= ' 외 '.$goods_count.'건'; ?>
|
||||
|
||||
<dl id="sod_bsk_tot">
|
||||
<dt class="sod_bsk_sell">주문</dt>
|
||||
<dd class="sod_bsk_sell"><strong><?php echo number_format($tot_sell_price); ?> 원</strong></dd>
|
||||
<?php if($it_cp_count > 0) { ?>
|
||||
<dt class="sod_bsk_coupon">쿠폰</dt>
|
||||
<dd class="sod_bsk_coupon"><strong id="ct_tot_coupon">0 원</strong></dd>
|
||||
<?php } ?>
|
||||
<dt class="sod_bsk_dvr">배송비</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd>
|
||||
<dt class="sod_bsk_cnt">총계</dt>
|
||||
<dd class="sod_bsk_cnt">
|
||||
<?php $tot_price = $tot_sell_price + $send_cost; // 총계 = 주문상품금액합계 + 배송비 ?>
|
||||
<strong id="ct_tot_price"><?php echo number_format($tot_price); ?> 원</strong>
|
||||
</dd>
|
||||
<dt class="sod_bsk_point">포인트</dt>
|
||||
<dd class="sod_bsk_point"><strong><?php echo number_format($tot_point); ?> 점</strong></dd>
|
||||
</dl>
|
||||
|
||||
<!-- 주문상품 합계 시작 { -->
|
||||
<div class="sod_ta_wr">
|
||||
<dl id="m_sod_bsk_tot">
|
||||
<dt class="sod_bsk_sell">주문</dt>
|
||||
<dd class="sod_bsk_sell"><strong><?php echo number_format($tot_sell_price); ?> 원</strong></dd>
|
||||
<?php if($it_cp_count > 0) { ?>
|
||||
<dt class="sod_bsk_coupon">쿠폰</dt>
|
||||
<dd class="sod_bsk_coupon"><strong id="ct_tot_coupon">0 원</strong></dd>
|
||||
<?php } ?>
|
||||
<dt class="sod_bsk_dvr">배송비</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd>
|
||||
|
||||
<dt class="sod_bsk_point">포인트</dt>
|
||||
<dd class="sod_bsk_point"><strong><?php echo number_format($tot_point); ?> 점</strong></dd>
|
||||
<dt class="sod_bsk_cnt">총계</dt>
|
||||
<dd class="sod_bsk_cnt">
|
||||
<?php $tot_price = $tot_sell_price + $send_cost; // 총계 = 주문상품금액합계 + 배송비 ?>
|
||||
<strong id="ct_tot_price"><?php echo number_format($tot_price); ?></strong> 원
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<!-- } 주문상품 합계 끝 -->
|
||||
|
||||
<?php
|
||||
$content = ob_get_contents();
|
||||
@ -270,38 +276,37 @@ if($is_kakaopay_use) {
|
||||
<section id="sod_frm_orderer" >
|
||||
<h2>주문하시는 분</h2>
|
||||
|
||||
<div class="odf_tbl">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_name">이름<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td><input type="text" name="od_name" value="<?php echo get_text($member['mb_name']); ?>" id="od_name" required class="frm_input required" maxlength="20"></td>
|
||||
</tr>
|
||||
<div class="odf_list">
|
||||
<ul>
|
||||
<li>
|
||||
<label for="od_name">이름<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_name" value="<?php echo get_text($member['mb_name']); ?>" id="od_name" required class="frm_input required" maxlength="20">
|
||||
</li>
|
||||
|
||||
<?php if (!$is_member) { // 비회원이면 ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_pwd">비밀번호<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td>
|
||||
<input type="password" name="od_pwd" id="od_pwd" required class="frm_input required" maxlength="20">
|
||||
영,숫자 3~20자 (주문서 조회시 필요)
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (!$is_member) { // 비회원이면 ?>
|
||||
<li>
|
||||
<label for="od_pwd">비밀번호<strong class="sound_only"> 필수</strong></label>
|
||||
|
||||
<input type="password" name="od_pwd" id="od_pwd" required class="frm_input required" maxlength="20">
|
||||
영,숫자 3~20자 (주문서 조회시 필요)
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="od_tel">전화번호<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td><input type="text" name="od_tel" value="<?php echo get_text($member['mb_tel']); ?>" id="od_tel" required class="frm_input required" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_hp">핸드폰</label></th>
|
||||
<td><input type="text" name="od_hp" value="<?php echo get_text($member['mb_hp']); ?>" id="od_hp" class="frm_input" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
<td>
|
||||
<label for="od_zip" class="sound_only">우편번호<strong class="sound_only"> 필수</strong></label>
|
||||
<li>
|
||||
<label for="od_tel">전화번호<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_tel" value="<?php echo get_text($member['mb_tel']); ?>" id="od_tel" required class="frm_input required" maxlength="20">
|
||||
</li>
|
||||
<li>
|
||||
<label for="od_hp">핸드폰</label>
|
||||
<input type="text" name="od_hp" value="<?php echo get_text($member['mb_hp']); ?>" id="od_hp" class="frm_input" maxlength="20">
|
||||
</li>
|
||||
<li>
|
||||
<strong>주소</strong>
|
||||
|
||||
<span class="add_num"><label for="od_zip" class="sound_only">우편번호<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_zip" value="<?php echo $member['mb_zip1'].$member['mb_zip2']; ?>" id="od_zip" required class="frm_input required" size="5" maxlength="6">
|
||||
<button type="button" class="btn_frmline" onclick="win_zip('forderform', 'od_zip', 'od_addr1', 'od_addr2', 'od_addr3', 'od_addr_jibeon');">주소 검색</button><br>
|
||||
<button type="button" class="btn_frmline btn_addsch" onclick="win_zip('forderform', 'od_zip', 'od_addr1', 'od_addr2', 'od_addr3', 'od_addr_jibeon');">주소검색</button></span>
|
||||
<label for="od_addr1" class="sound_only">기본주소<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_addr1" value="<?php echo get_text($member['mb_addr1']) ?>" id="od_addr1" required class="frm_input frm_address required">
|
||||
<label for="od_addr2" class="sound_only">상세주소</label>
|
||||
@ -309,123 +314,116 @@ if($is_kakaopay_use) {
|
||||
<label for="od_addr3" class="sound_only">참고항목</label>
|
||||
<input type="text" name="od_addr3" value="<?php echo get_text($member['mb_addr3']) ?>" id="od_addr3" class="frm_input frm_address" readonly="readonly">
|
||||
<input type="hidden" name="od_addr_jibeon" value="<?php echo get_text($member['mb_addr_jibeon']); ?>"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_email">E-mail<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td><input type="email" name="od_email" value="<?php echo $member['mb_email']; ?>" id="od_email" required class="frm_input required" maxlength="100"></td>
|
||||
</tr>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<label for="od_email">E-mail<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="email" name="od_email" value="<?php echo $member['mb_email']; ?>" id="od_email" required class="frm_input required" maxlength="100">
|
||||
</li>
|
||||
|
||||
<?php if ($default['de_hope_date_use']) { // 배송희망일 사용 ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_hope_date">희망배송일</label></th>
|
||||
<td>
|
||||
<!-- <select name="od_hope_date" id="od_hope_date">
|
||||
<option value="">선택하십시오.</option>
|
||||
<?php
|
||||
for ($i=0; $i<7; $i++) {
|
||||
$sdate = date("Y-m-d", time()+86400*($default['de_hope_date_after']+$i));
|
||||
echo '<option value="'.$sdate.'">'.$sdate.' ('.get_yoil($sdate).')</option>'.PHP_EOL;
|
||||
}
|
||||
?>
|
||||
</select> -->
|
||||
<input type="text" name="od_hope_date" value="" id="od_hope_date" required class="frm_input required" size="11" maxlength="10" readonly> 이후로 배송 바랍니다.
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if ($default['de_hope_date_use']) { // 배송희망일 사용 ?>
|
||||
<li>
|
||||
<label for="od_hope_date">희망배송일</label>
|
||||
<!-- <select name="od_hope_date" id="od_hope_date">
|
||||
<option value="">선택하십시오.</option>
|
||||
<?php
|
||||
for ($i=0; $i<7; $i++) {
|
||||
$sdate = date("Y-m-d", time()+86400*($default['de_hope_date_after']+$i));
|
||||
echo '<option value="'.$sdate.'">'.$sdate.' ('.get_yoil($sdate).')</option>'.PHP_EOL;
|
||||
}
|
||||
?>
|
||||
</select> -->
|
||||
<input type="text" name="od_hope_date" value="" id="od_hope_date" required class="frm_input required" size="11" maxlength="10" readonly> 이후로 배송 바랍니다.
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="sod_frm_taker">
|
||||
<h2>받으시는 분</h2>
|
||||
|
||||
<div class="odf_tbl">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php
|
||||
if($is_member) {
|
||||
// 배송지 이력
|
||||
$addr_list = '';
|
||||
$sep = chr(30);
|
||||
<div class="odf_list">
|
||||
<ul>
|
||||
<?php
|
||||
if($is_member) {
|
||||
// 배송지 이력
|
||||
$addr_list = '';
|
||||
$sep = chr(30);
|
||||
|
||||
// 주문자와 동일
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_same">주문자와 동일</label>'.PHP_EOL;
|
||||
// 주문자와 동일
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_same">주문자와 동일</label>'.PHP_EOL;
|
||||
|
||||
// 기본배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
if($row['ad_id']) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_def">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본배송지</label>'.PHP_EOL;
|
||||
// 기본배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
if($row['ad_id']) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_def">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본배송지</label>'.PHP_EOL;
|
||||
}
|
||||
|
||||
// 최근배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '0'
|
||||
order by ad_id desc
|
||||
limit 1 ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근배송지('.($row['ad_subject'] ? $row['ad_subject'] : $row['ad_name']).')</label>';
|
||||
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_'.($i+1).'"> '.PHP_EOL.$val2.PHP_EOL;
|
||||
}
|
||||
|
||||
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="new" id="od_sel_addr_new">'.PHP_EOL;
|
||||
$addr_list .= '<label for="od_sel_addr_new">신규배송지</label>'.PHP_EOL;
|
||||
|
||||
$addr_list .='<a href="'.G5_SHOP_URL.'/orderaddress.php" id="order_address">배송지목록</a>';
|
||||
} else {
|
||||
// 주문자와 동일
|
||||
$addr_list .= '<input type="checkbox" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_same">주문자와 동일</label>'.PHP_EOL;
|
||||
}
|
||||
|
||||
// 최근배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '0'
|
||||
order by ad_id desc
|
||||
limit 1 ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근배송지('.($row['ad_subject'] ? $row['ad_subject'] : $row['ad_name']).')</label>';
|
||||
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_'.($i+1).'"> '.PHP_EOL.$val2.PHP_EOL;
|
||||
}
|
||||
|
||||
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="new" id="od_sel_addr_new">'.PHP_EOL;
|
||||
$addr_list .= '<label for="od_sel_addr_new">신규배송지</label>'.PHP_EOL;
|
||||
|
||||
$addr_list .='<a href="'.G5_SHOP_URL.'/orderaddress.php" id="order_address">배송지목록</a>';
|
||||
} else {
|
||||
// 주문자와 동일
|
||||
$addr_list .= '<input type="checkbox" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_same">주문자와 동일</label>'.PHP_EOL;
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">배송지선택</th>
|
||||
<td id="sod_frm_deli">
|
||||
<?php echo $addr_list; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($is_member) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="ad_subject">배송지명</label></th>
|
||||
<td>
|
||||
?>
|
||||
<li class="dlv_slt">
|
||||
<strong>배송지선택</strong>
|
||||
<div><?php echo $addr_list; ?></div>
|
||||
</li>
|
||||
<?php if($is_member) { ?>
|
||||
<li>
|
||||
<label for="ad_subject">배송지명</label>
|
||||
<input type="text" name="ad_subject" id="ad_subject" class="frm_input" maxlength="20">
|
||||
<input type="checkbox" name="ad_default" id="ad_default" value="1">
|
||||
<label for="ad_default">기본배송지로 설정</label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_b_name">이름<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td><input type="text" name="od_b_name" id="od_b_name" required class="frm_input required" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_b_tel">전화번호<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td><input type="text" name="od_b_tel" id="od_b_tel" required class="frm_input required" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_b_hp">핸드폰</label></th>
|
||||
<td><input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
<td id="sod_frm_addr">
|
||||
<label for="ad_default" class="ad_default">기본배송지로 설정</label>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<label for="od_b_name">이름<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_b_name" id="od_b_name" required class="frm_input required" maxlength="20">
|
||||
</li>
|
||||
<li>
|
||||
<label for="od_b_tel">전화번호<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_b_tel" id="od_b_tel" required class="frm_input required" maxlength="20">
|
||||
</li>
|
||||
<li>
|
||||
<label for="od_b_hp">핸드폰</label>
|
||||
<input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20">
|
||||
</li>
|
||||
<li>
|
||||
<strong>주소</strong>
|
||||
<label for="od_b_zip" class="sound_only">우편번호<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_b_zip" id="od_b_zip" required class="frm_input required" size="5" maxlength="6">
|
||||
<button type="button" class="btn_frmline" onclick="win_zip('forderform', 'od_b_zip', 'od_b_addr1', 'od_b_addr2', 'od_b_addr3', 'od_b_addr_jibeon');">주소 검색</button><br>
|
||||
<span class="add_num"><input type="text" name="od_b_zip" id="od_b_zip" required class="frm_input required" size="5" maxlength="6">
|
||||
<button type="button" class="btn_frmline btn_addsch" onclick="win_zip('forderform', 'od_b_zip', 'od_b_addr1', 'od_b_addr2', 'od_b_addr3', 'od_b_addr_jibeon');">주소 검색</button></span>
|
||||
<label for="od_b_addr1" class="sound_only">기본주소<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_b_addr1" id="od_b_addr1" required class="frm_input frm_address required">
|
||||
<label for="od_b_addr2" class="sound_only">상세주소</label>
|
||||
@ -433,17 +431,18 @@ if($is_kakaopay_use) {
|
||||
<label for="od_b_addr3" class="sound_only">참고항목</label>
|
||||
<input type="text" name="od_b_addr3" id="od_b_addr3" class="frm_input frm_address" readonly="readonly">
|
||||
<input type="hidden" name="od_b_addr_jibeon" value="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_memo">전하실 말씀</label></th>
|
||||
<td><textarea name="od_memo" id="od_memo"></textarea></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
<li>
|
||||
<label for="od_memo">전하실 말씀</label>
|
||||
<textarea name="od_memo" id="od_memo"></textarea>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$oc_cnt = $sc_cnt = 0;
|
||||
if($is_member) {
|
||||
@ -488,6 +487,7 @@ if($is_kakaopay_use) {
|
||||
<section id="sod_frm_pay">
|
||||
<h2>결제정보 입력</h2>
|
||||
|
||||
|
||||
<div class="odf_tbl">
|
||||
<table>
|
||||
<tbody>
|
||||
@ -496,7 +496,7 @@ if($is_kakaopay_use) {
|
||||
<th scope="row">주문할인쿠폰</th>
|
||||
<td>
|
||||
<input type="hidden" name="od_cp_id" value="">
|
||||
<button type="button" id="od_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
<button type="button" id="od_coupon_btn" class="cp_btn1">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -509,7 +509,7 @@ if($is_kakaopay_use) {
|
||||
<th scope="row">배송비할인쿠폰</th>
|
||||
<td>
|
||||
<input type="hidden" name="sc_cp_id" value="">
|
||||
<button type="button" id="sc_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
<button type="button" id="sc_coupon_btn" class="cp_btn1">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -542,48 +542,48 @@ if($is_kakaopay_use) {
|
||||
}
|
||||
|
||||
if ($is_kakaopay_use || $default['de_bank_use'] || $default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use'] || $default['de_easy_pay_use'] || is_inicis_simple_pay()) {
|
||||
echo '<div id="sod_frm_paysel"><ul>';
|
||||
echo '<div id="m_sod_frm_paysel"><ul>';
|
||||
}
|
||||
|
||||
// 카카오페이
|
||||
if($is_kakaopay_use) {
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="od_settle_kakaopay" name="od_settle_case" value="KAKAOPAY" '.$checked.'> <label for="od_settle_kakaopay" class="kakaopay_icon">KAKAOPAY</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="od_settle_kakaopay" name="od_settle_case" value="KAKAOPAY" '.$checked.'> <label for="od_settle_kakaopay" class="kakaopay_icon lb_icon">KAKAOPAY</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
// 무통장입금 사용
|
||||
if ($default['de_bank_use']) {
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="od_settle_bank" name="od_settle_case" value="무통장" '.$checked.'> <label for="od_settle_bank">무통장입금</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="od_settle_bank" name="od_settle_case" value="무통장" '.$checked.'> <label for="od_settle_bank" class="lb_icon bank_icon">무통장입금</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
// 가상계좌 사용
|
||||
if ($default['de_vbank_use']) {
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="od_settle_vbank" name="od_settle_case" value="가상계좌" '.$checked.'> <label for="od_settle_vbank">'.$escrow_title.'가상계좌</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="od_settle_vbank" name="od_settle_case" value="가상계좌" '.$checked.'> <label for="od_settle_vbank" class="lb_icon vbank_icon">'.$escrow_title.'가상계좌</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
// 계좌이체 사용
|
||||
if ($default['de_iche_use']) {
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="od_settle_iche" name="od_settle_case" value="계좌이체" '.$checked.'> <label for="od_settle_iche">'.$escrow_title.'계좌이체</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="od_settle_iche" name="od_settle_case" value="계좌이체" '.$checked.'> <label for="od_settle_iche" class="lb_icon iche_icon">'.$escrow_title.'계좌이체</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
// 휴대폰 사용
|
||||
if ($default['de_hp_use']) {
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="od_settle_hp" name="od_settle_case" value="휴대폰" '.$checked.'> <label for="od_settle_hp">휴대폰</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="od_settle_hp" name="od_settle_case" value="휴대폰" '.$checked.'> <label for="od_settle_hp" class="lb_icon hp_icon">휴대폰</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
// 신용카드 사용
|
||||
if ($default['de_card_use']) {
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="od_settle_card" name="od_settle_case" value="신용카드" '.$checked.'> <label for="od_settle_card">신용카드</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="od_settle_card" name="od_settle_case" value="신용카드" '.$checked.'> <label for="od_settle_card" class="lb_icon card_icon">신용카드</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
@ -602,13 +602,13 @@ if($is_kakaopay_use) {
|
||||
}
|
||||
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="od_settle_easy_pay" name="od_settle_case" value="간편결제" '.$checked.'> <label for="od_settle_easy_pay" class="'.$pg_easy_pay_name.'">'.$pg_easy_pay_name.'</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="od_settle_easy_pay" name="od_settle_case" value="간편결제" '.$checked.'> <label for="od_settle_easy_pay" class="'.$pg_easy_pay_name.' lb_icon">'.$pg_easy_pay_name.'</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
//이니시스 삼성페이
|
||||
if($default['de_samsung_pay_use']) {
|
||||
echo '<li><input type="radio" id="od_settle_samsungpay" data-case="samsungpay" name="od_settle_case" value="삼성페이" '.$checked.'> <label for="od_settle_samsungpay" class="samsung_pay">삼성페이</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="od_settle_samsungpay" data-case="samsungpay" name="od_settle_case" value="삼성페이" '.$checked.'> <label for="od_settle_samsungpay" class="samsung_pay lb_icon">삼성페이</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
@ -638,8 +638,10 @@ if($is_kakaopay_use) {
|
||||
$point_unit = (int)$default['de_settle_point_unit'];
|
||||
$temp_point = (int)((int)($temp_point / $point_unit) * $point_unit);
|
||||
|
||||
echo '<div id="sod_frm_pt"><input type="hidden" name="max_temp_point" value="'.$temp_point.'">결제포인트 : <input type="text" id="od_temp_point" name="od_temp_point" value="0" class="frm_input" size="10">점 ('.$point_unit.'점 단위로 입력하세요.)</div>';
|
||||
echo '<p id="sod_frm_pt_info">회원님의 보유포인트('.display_point($member['mb_point']).')중 <strong id="use_max_point">'.display_point($temp_point).'</strong>까지 사용 가능합니다.</p>';
|
||||
echo '<div class="sod_frm_point">';
|
||||
echo '<div><input type="hidden" name="max_temp_point" value="'.$temp_point.'"><label for="od_temp_point">사용 포인트('.$point_unit.'점 단위)</label> <input type="text" id="od_temp_point" name="od_temp_point" value="0" size="10"> 점</div>';
|
||||
echo '<div id="sod_frm_pt_info"><span><strong>보유포인트</strong>'.display_point($member['mb_point']).'</span><span class="max_point_box"><strong>최대사용가능포인트</strong><em id="use_max_point">'.display_point($temp_point).'</em></span></div>';
|
||||
echo '</div>';
|
||||
$multi_settle++;
|
||||
}
|
||||
}
|
||||
@ -666,8 +668,8 @@ if($is_kakaopay_use) {
|
||||
echo '<div id="settle_bank" style="display:none">';
|
||||
echo '<label for="od_bank_account" class="sound_only">입금할 계좌</label>';
|
||||
echo $bank_account;
|
||||
echo '<br><label for="od_deposit_name">입금자명</label>';
|
||||
echo '<input type="text" name="od_deposit_name" id="od_deposit_name" class="frm_input" size="10" maxlength="20">';
|
||||
echo '<br><label for="od_deposit_name">입금자명</label> ';
|
||||
echo '<input type="text" name="od_deposit_name" id="od_deposit_name" size="10" maxlength="20">';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
@ -799,9 +801,9 @@ $(function() {
|
||||
|
||||
calculate_total_price();
|
||||
$("#cp_frm").remove();
|
||||
$cp_btn_el.text("쿠폰변경").addClass("cp_mod").focus();
|
||||
$cp_btn_el.text("변경").addClass("cp_mod").focus();
|
||||
if(!$cp_row_el.find(".cp_cancel").size())
|
||||
$cp_btn_el.after("<button type=\"button\" class=\"cp_cancel\">쿠폰취소</button>");
|
||||
$cp_btn_el.after("<button type=\"button\" class=\"cp_cancel\">취소</button>");
|
||||
});
|
||||
|
||||
$(document).on("click", "#cp_close", function() {
|
||||
@ -866,9 +868,9 @@ $(function() {
|
||||
$("#sc_cp_price").text(0);
|
||||
calculate_order_price();
|
||||
$("#od_coupon_frm").remove();
|
||||
$("#od_coupon_btn").text("쿠폰변경").focus();
|
||||
$("#od_coupon_btn").text("변경").focus();
|
||||
if(!$("#od_coupon_cancel").size())
|
||||
$("#od_coupon_btn").after("<button type=\"button\" id=\"od_coupon_cancel\" class=\"btn_frmline\">쿠폰취소</button>");
|
||||
$("#od_coupon_btn").after("<button type=\"button\" id=\"od_coupon_cancel\" class=\"cp_cancel1\">취소</button>");
|
||||
});
|
||||
|
||||
$(document).on("click", "#od_coupon_close", function() {
|
||||
@ -925,9 +927,9 @@ $(function() {
|
||||
$("#sc_cp_price").text(number_format(String(price)));
|
||||
calculate_order_price();
|
||||
$("#sc_coupon_frm").remove();
|
||||
$("#sc_coupon_btn").text("쿠폰변경").focus();
|
||||
$("#sc_coupon_btn").text("변경").focus();
|
||||
if(!$("#sc_coupon_cancel").size())
|
||||
$("#sc_coupon_btn").after("<button type=\"button\" id=\"sc_coupon_cancel\" class=\"btn_frmline\">쿠폰취소</button>");
|
||||
$("#sc_coupon_btn").after("<button type=\"button\" id=\"sc_coupon_cancel\" class=\"cp_cancel1\">취소</button>");
|
||||
});
|
||||
|
||||
$(document).on("click", "#sc_coupon_close", function() {
|
||||
@ -1044,7 +1046,7 @@ function calculate_total_price()
|
||||
tot_sell_price = sell_price - tot_cp_price + send_cost;
|
||||
|
||||
$("#ct_tot_coupon").text(number_format(String(tot_cp_price))+" 원");
|
||||
$("#ct_tot_price").text(number_format(String(tot_sell_price))+" 원");
|
||||
$("#ct_tot_price").text(number_format(String(tot_sell_price)));
|
||||
|
||||
$("input[name=good_mny]").val(tot_sell_price);
|
||||
$("input[name=od_price]").val(sell_price - tot_cp_price);
|
||||
@ -1105,7 +1107,7 @@ function calculate_temp_point()
|
||||
|
||||
temp_point = parseInt(temp_point / point_unit) * point_unit;
|
||||
|
||||
$("#use_max_point").text("최대 "+number_format(String(temp_point))+"점");
|
||||
$("#use_max_point").text(number_format(String(temp_point))+"점");
|
||||
$("input[name=max_temp_point]").val(temp_point);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user