적용할 수 있는 쿠폰이 있을 경우 쿠폰할인 노출되도록 수정
This commit is contained in:
@ -83,6 +83,7 @@ ob_start();
|
|||||||
|
|
||||||
$good_info = '';
|
$good_info = '';
|
||||||
$it_send_cost = 0;
|
$it_send_cost = 0;
|
||||||
|
$it_cp_count = 0;
|
||||||
|
|
||||||
$comm_tax_mny = 0; // 과세금액
|
$comm_tax_mny = 0; // 과세금액
|
||||||
$comm_vat_mny = 0; // 부가세
|
$comm_vat_mny = 0; // 부가세
|
||||||
@ -167,8 +168,10 @@ ob_start();
|
|||||||
$cp_count++;
|
$cp_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($cp_count)
|
if($cp_count) {
|
||||||
$cp_button = '<button type="button" class="it_coupon_btn btn_frmline">적용</button>';
|
$cp_button = '<button type="button" class="it_coupon_btn btn_frmline">적용</button>';
|
||||||
|
$it_cp_count++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -219,8 +222,10 @@ ob_start();
|
|||||||
<dl id="sod_bsk_tot">
|
<dl id="sod_bsk_tot">
|
||||||
<dt class="sod_bsk_sell">주문</dt>
|
<dt class="sod_bsk_sell">주문</dt>
|
||||||
<dd class="sod_bsk_sell"><strong><?php echo number_format($tot_sell_price); ?> 원</strong></dd>
|
<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>
|
<dt class="sod_bsk_coupon">쿠폰</dt>
|
||||||
<dd class="sod_bsk_coupon"><strong id="ct_tot_coupon">0 원</strong></dd>
|
<dd class="sod_bsk_coupon"><strong id="ct_tot_coupon">0 원</strong></dd>
|
||||||
|
<?php } ?>
|
||||||
<dt class="sod_bsk_dvr">배송비</dt>
|
<dt class="sod_bsk_dvr">배송비</dt>
|
||||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd>
|
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd>
|
||||||
<dt class="sod_bsk_cnt">총계</dt>
|
<dt class="sod_bsk_cnt">총계</dt>
|
||||||
|
|||||||
@ -173,6 +173,7 @@ function get_intall_file()
|
|||||||
|
|
||||||
$good_info = '';
|
$good_info = '';
|
||||||
$it_send_cost = 0;
|
$it_send_cost = 0;
|
||||||
|
$it_cp_count = 0;
|
||||||
|
|
||||||
$comm_tax_mny = 0; // 과세금액
|
$comm_tax_mny = 0; // 과세금액
|
||||||
$comm_vat_mny = 0; // 부가세
|
$comm_vat_mny = 0; // 부가세
|
||||||
@ -255,8 +256,10 @@ function get_intall_file()
|
|||||||
$cp_count++;
|
$cp_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($cp_count)
|
if($cp_count) {
|
||||||
$cp_button = '<button type="button" class="it_coupon_btn btn_frmline">적용</button>';
|
$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">
|
<dl id="sod_bsk_tot">
|
||||||
<dt class="sod_bsk_sell">주문</dt>
|
<dt class="sod_bsk_sell">주문</dt>
|
||||||
<dd class="sod_bsk_sell"><strong><?php echo number_format($tot_sell_price); ?> 원</strong></dd>
|
<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>
|
<dt class="sod_bsk_coupon">쿠폰할인</dt>
|
||||||
<dd class="sod_bsk_coupon"><strong id="ct_tot_coupon">0 원</strong></dd>
|
<dd class="sod_bsk_coupon"><strong id="ct_tot_coupon">0 원</strong></dd>
|
||||||
|
<?php } ?>
|
||||||
<dt class="sod_bsk_dvr">배송비</dt>
|
<dt class="sod_bsk_dvr">배송비</dt>
|
||||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd>
|
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd>
|
||||||
<dt class="sod_bsk_cnt">총계</dt>
|
<dt class="sod_bsk_cnt">총계</dt>
|
||||||
|
|||||||
Reference in New Issue
Block a user