적용할 수 있는 쿠폰이 있을 경우 쿠폰할인 노출되도록 수정

This commit is contained in:
chicpro
2013-09-16 10:04:50 +09:00
parent 842ae0a818
commit 7cd4e7d74a
2 changed files with 12 additions and 2 deletions

View File

@ -173,6 +173,7 @@ function get_intall_file()
$good_info = '';
$it_send_cost = 0;
$it_cp_count = 0;
$comm_tax_mny = 0; // 과세금액
$comm_vat_mny = 0; // 부가세
@ -255,8 +256,10 @@ function get_intall_file()
$cp_count++;
}
if($cp_count)
if($cp_count) {
$cp_button = '<button type="button" class="it_coupon_btn btn_frmline">적용</button>';
$it_cp_count++;
}
}
?>
@ -309,8 +312,10 @@ function get_intall_file()
<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>