$temp_point = 0; // 회원이면서 포인트사용이면 if ($is_member && $config['cf_use_point']) { // 포인트 결제 사용 포인트보다 회원의 포인트가 크다면 if ($member['mb_point'] >= $default['de_settle_min_point']) { $temp_point = (int) $default['de_settle_max_point']; if ($temp_point > (int) $tot_sell_price) { $temp_point = (int) $tot_sell_price; } if ($temp_point > (int) $member['mb_point']) { $temp_point = (int) $member['mb_point']; } $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>'; $multi_settle++; } } if ($default['de_bank_use']) { // 은행계좌를 배열로 만든후 $str = explode("\n", trim($default['de_bank_account'])); if (count($str) <= 1) { $bank_account = '<input type="hidden" name="od_bank_account" value="' . $str[0] . '">' . $str[0] . PHP_EOL; } else { $bank_account = '<select name="od_bank_account" id="od_bank_account">' . PHP_EOL; $bank_account .= '<option value="">선택하십시오.</option>'; for ($i = 0; $i < count($str); $i++) { //$str[$i] = str_replace("\r", "", $str[$i]); $str[$i] = trim($str[$i]); $bank_account .= '<option value="' . $str[$i] . '">' . $str[$i] . '</option>' . PHP_EOL;
if ($member['mb_point'] >= $default['de_settle_min_point']) { $temp_point = (int) $default['de_settle_max_point']; if ($temp_point > (int) $tot_sell_price) { $temp_point = (int) $tot_sell_price; } if ($temp_point > (int) $member['mb_point']) { $temp_point = (int) $member['mb_point']; } $point_unit = (int) $default['de_settle_point_unit']; $temp_point = (int) ((int) ($temp_point / $point_unit) * $point_unit); ?> <p id="sod_frm_pt">보유포인트(<?php echo display_point($member['mb_point']); ?> )중 <strong id="use_max_point">최대 <?php echo display_point($temp_point); ?> </strong>까지 사용 가능</p> <input type="hidden" name="max_temp_point" value="<?php echo $temp_point; ?> "> <label for="od_temp_point">사용 포인트</label> <input type="text" name="od_temp_point" value="0" id="od_temp_point" class="frm_input" size="10">점 (<?php echo $point_unit; ?> 점 단위로 입력하세요.) <?php $multi_settle++; } }
?> ">영수증 출력</a> <?php } ?> <td> </td> </tr> <?php } if ($od['od_receipt_point'] > 0) { ?> <tr> <th scope="row">포인트사용</th> <td><?php echo display_point($od['od_receipt_point']); ?> </td> </tr> <?php } if ($od['od_refund_price'] > 0) { ?> <tr> <th scope="row">환불 금액</th> <td><?php echo display_price($od['od_refund_price']); ?> </td> </tr>
<a href="javascript:;" onclick="<?php echo $card_receipt_script; ?>">영수증 출력</a> <?php } ?> <td> </td> </tr> <?php } if ($od['od_receipt_point'] > 0) { ?> <tr> <th scope="row">포인트사용</th> <td><?php echo display_point($od['od_receipt_point']); ?></td> </tr> <?php } if ($od['od_refund_price'] > 0) { ?> <tr> <th scope="row">환불 금액</th> <td><?php echo display_price($od['od_refund_price']); ?></td> </tr> <?php }
<col> </colgroup> <tbody> <?php if ($od_receipt_point > 0) { ?> <tr> <th scope="row" style="<?php echo $th_st; ?> ">포인트 입금액</th> <td style="<?php echo $td_st; ?> "><?php echo display_point($od_receipt_point); ?> </td> </tr> <?php } ?> <?php if ($od_receipt_price > 0 && $od_settle_case == '신용카드') { ?> <tr> <th scope="row" style="<?php echo $th_st; ?> ">신용카드 입금액</th>
if ($od['od_receipt_price'] > 0 && $od['od_settle_case'] == '신용카드') { $card_list['od_receipt_time'] = $od['od_receipt_time']; $card_list['od_receipt_price'] = display_price($od['od_receipt_price']); $is_receipt = true; } // 무통장 입금 if ($od['od_receipt_price'] > 0 && $od['od_settle_case'] == '무통장') { $bank_list['od_receipt_time'] = $od['od_receipt_time']; $bank_list['od_receipt_price'] = display_price($od['od_receipt_price']); $bank_list['od_deposit_name'] = $od['od_deposit_name']; $is_receipt = true; } // 포인트 입금 if ($od['od_receipt_point'] > 0) { $point_list['od_time'] = $od['od_time']; $point_list['od_receipt_point'] = display_point($od['od_receipt_point']); $is_receipt = true; } // 배송정보 $is_delivery = false; if ($od['od_delivery_company'] && $od['od_invoice']) { $delivery_list['dl_company'] = $od['od_delivery_company']; $delivery_list['od_invoice'] = $od['od_invoice']; $delivery_list['od_invoice_time'] = $od['od_invoice_time']; $delivery_list['dl_inquiry'] = get_delivery_inquiry($od['od_delivery_company'], $od['od_invoice'], 'dvr_link'); $is_delivery = true; } // 입금 또는 배송내역이 있다면 메일 발송 if ($is_receipt || $is_delivery) { ob_start(); include G5_SHOP_PATH . '/mail/ordermail.mail.php';