diff --git a/shop/item.php b/shop/item.php index b172908e7..e2510e0fe 100644 --- a/shop/item.php +++ b/shop/item.php @@ -291,17 +291,15 @@ else - - 원 - + - + 판매가격 - 원 - + 원 + @@ -316,10 +314,10 @@ else - + 포인트 - 점 - + 점 + @@ -836,86 +834,6 @@ else $(".item_relation_count").text(""); }); - function qty_add(num) - { - var f = document.fitem; - var qty = parseInt(f.ct_qty.value); - if (num < 0 && qty <= 1) - { - alert("수량은 1 이상만 가능합니다."); - qty = 1; - } - else if (num > 0 && qty >= 9999) - { - alert("수량은 9999 이하만 가능합니다."); - qty = 9999; - } - else - { - qty = qty + num; - } - - f.ct_qty.value = qty; - - amount_change(); - } - - function get_amount(data) - { - var str = data.split(";"); - var num = parseInt(str[1]); - if (isNaN(num)) { - return 0; - } else { - return num; - } - } - - function amount_change() - { - var basic_amount = parseInt(""); - var basic_point = parseFloat(""); - var cust_amount = parseFloat(""); - - var f = document.fitem; - var opt1 = 0; - var opt2 = 0; - var opt3 = 0; - var opt4 = 0; - var opt5 = 0; - var opt6 = 0; - var ct_qty = 0; - - if (typeof(f.ct_qty) != 'undefined') - ct_qty = parseInt(f.ct_qty.value); - - if (typeof(f.it_opt1) != 'undefined') opt1 = get_amount(f.it_opt1.value); - if (typeof(f.it_opt2) != 'undefined') opt2 = get_amount(f.it_opt2.value); - if (typeof(f.it_opt3) != 'undefined') opt3 = get_amount(f.it_opt3.value); - if (typeof(f.it_opt4) != 'undefined') opt4 = get_amount(f.it_opt4.value); - if (typeof(f.it_opt5) != 'undefined') opt5 = get_amount(f.it_opt5.value); - if (typeof(f.it_opt6) != 'undefined') opt6 = get_amount(f.it_opt6.value); - - var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5 + opt6; - var point = parseInt(basic_point); - - if (typeof(f.it_price) != 'undefined') - f.it_price.value = amount; - - if (typeof(f.disp_sell_price) != 'undefined') - f.disp_sell_price.value = number_format(String(amount * ct_qty)); - - if (typeof(f.disp_cust_price) != 'undefined') - f.disp_cust_price.value = number_format(String(cust_amount * ct_qty)); - - if (typeof(f.it_point) != 'undefined') { - f.it_point.value = point; - f.disp_point.value = number_format(String(point * ct_qty)); - } - } - - - // 바로구매 또는 장바구니 담기 function fitemcheck(f, act) {