주문폼에 결제할인 배송비할인 금액 표시

This commit is contained in:
chicpro
2013-09-12 18:28:55 +09:00
parent d843d549b7
commit f9633eb488
2 changed files with 30 additions and 0 deletions

View File

@ -572,6 +572,10 @@ ob_end_clean();
<button type="button" id="od_coupon_btn" class="btn_frmline">쿠폰적용</button>
</td>
</tr>
<tr>
<th scope="row">결제할인금액</th>
<td><span id="od_cp_price">0</span>원</td>
</tr>
<?php } ?>
<?php if($sc_cnt > 0) { ?>
<tr>
@ -581,6 +585,10 @@ ob_end_clean();
<button type="button" id="sc_coupon_btn" class="btn_frmline">쿠폰적용</button>
</td>
</tr>
<tr>
<th scope="row">배송비할인금액</th>
<td><span id="sc_cp_price">0</span>원</td>
</tr>
<?php } ?>
<tr>
<th>총 주문금액</th>
@ -924,6 +932,9 @@ $(function() {
$("input[name=od_price]").val(od_price - price);
$("input[name=od_cp_id]").val(cp_id);
$("input[name=od_coupon]").val(price);
$("input[name=od_send_coupon]").val(0);
$("#od_cp_price").text(number_format(String(price)));
$("#sc_cp_price").text(0);
calculate_order_price();
$("#od_coupon_frm").remove();
$("#od_coupon_btn").text("쿠폰변경").focus();
@ -943,6 +954,8 @@ $(function() {
$("input[name=sc_cp_id]").val("");
$("input[name=od_coupon]").val(0);
$("input[name=od_send_coupon]").val(0);
$("#od_cp_price").text(0);
$("#sc_cp_price").text(0);
calculate_order_price();
$("#od_coupon_frm").remove();
$("#od_coupon_btn").text("쿠폰적용").focus();
@ -980,6 +993,7 @@ $(function() {
$("input[name=sc_cp_id]").val(cp_id);
$("input[name=od_send_coupon]").val(price);
$("#sc_cp_price").text(number_format(String(price)));
calculate_order_price();
$("#sc_coupon_frm").remove();
$("#sc_coupon_btn").text("쿠폰변경").focus();
@ -994,6 +1008,7 @@ $(function() {
$("#sc_coupon_cancel").live("click", function() {
$("input[name=od_send_coupon]").val(0);
$("#sc_cp_price").text(0);
calculate_order_price();
$("#sc_coupon_frm").remove();
$("#sc_coupon_btn").text("쿠폰적용").focus();

View File

@ -810,6 +810,10 @@ function get_intall_file()
<button type="button" id="od_coupon_btn" class="btn_frmline">쿠폰적용</button>
</td>
</tr>
<tr>
<th scope="row">결제할인금액</th>
<td><span id="od_cp_price">0</span>원</td>
</tr>
<?php } ?>
<?php if($sc_cnt > 0) { ?>
<tr>
@ -819,6 +823,10 @@ function get_intall_file()
<button type="button" id="sc_coupon_btn" class="btn_frmline">쿠폰적용</button>
</td>
</tr>
<tr>
<th scope="row">배송비할인금액</th>
<td><span id="sc_cp_price">0</span>원</td>
</tr>
<?php } ?>
<tr>
<th>총 주문금액</th>
@ -1145,6 +1153,9 @@ $(function() {
$("input[name=od_price]").val(od_price - price);
$("input[name=od_cp_id]").val(cp_id);
$("input[name=od_coupon]").val(price);
$("input[name=od_send_coupon]").val(0);
$("#od_cp_price").text(number_format(String(price)));
$("#sc_cp_price").text(0);
calculate_order_price();
$("#od_coupon_frm").remove();
$("#od_coupon_btn").text("쿠폰변경").focus();
@ -1164,6 +1175,8 @@ $(function() {
$("input[name=sc_cp_id]").val("");
$("input[name=od_coupon]").val(0);
$("input[name=od_send_coupon]").val(0);
$("#od_cp_price").text(0);
$("#sc_cp_price").text(0);
calculate_order_price();
$("#od_coupon_frm").remove();
$("#od_coupon_btn").text("쿠폰적용").focus();
@ -1201,6 +1214,7 @@ $(function() {
$("input[name=sc_cp_id]").val(cp_id);
$("input[name=od_send_coupon]").val(price);
$("#sc_cp_price").text(number_format(String(price)));
calculate_order_price();
$("#sc_coupon_frm").remove();
$("#sc_coupon_btn").text("쿠폰변경").focus();
@ -1215,6 +1229,7 @@ $(function() {
$("#sc_coupon_cancel").live("click", function() {
$("input[name=od_send_coupon]").val(0);
$("#sc_cp_price").text(0);
calculate_order_price();
$("#sc_coupon_frm").remove();
$("#sc_coupon_btn").text("쿠폰적용").focus();