#186 가격 필드명 price 로 변경
This commit is contained in:
@ -48,7 +48,7 @@ $sql = " select a.ct_id,
|
||||
a.it_opt4,
|
||||
a.it_opt5,
|
||||
a.it_opt6,
|
||||
a.ct_amount,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
@ -83,7 +83,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$good_info .= "ordr_numb={$od_id}_".sprintf("%04d", $i).chr(31);
|
||||
$good_info .= "good_name=".addslashes($row['it_name']).chr(31);
|
||||
$good_info .= "good_cntx=".$row['ct_qty'].chr(31);
|
||||
$good_info .= "good_amtx=".$row['ct_amount'].chr(31);
|
||||
$good_info .= "good_amtx=".$row['ct_price'].chr(31);
|
||||
}
|
||||
|
||||
if ($i==0) { // 계속쇼핑
|
||||
@ -106,7 +106,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
}
|
||||
|
||||
$point = $row['ct_point'] * $row['ct_qty'];
|
||||
$sell_amount = $row['ct_amount'] * $row['ct_qty'];
|
||||
$sell_amount = $row['ct_price'] * $row['ct_qty'];
|
||||
?>
|
||||
|
||||
<tr>
|
||||
@ -130,7 +130,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
echo '<td class="td_num">'.$row['ct_qty'].'</td>';
|
||||
?>
|
||||
|
||||
<td class="td_bignum"><?php echo number_format($row['ct_amount']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($sell_amount); ?></td>
|
||||
|
||||
<?php
|
||||
|
||||
@ -305,20 +305,20 @@ else
|
||||
</tr>
|
||||
|
||||
<?php } else { // 전화문의가 아닐 경우?>
|
||||
<?php if ($it['it_cust_amount']) { // 1.00.03?>
|
||||
<?php if ($it['it_cust_price']) { // 1.00.03?>
|
||||
<tr>
|
||||
<th scope="row"><label for="disp_cust_amount">시중가격</label></th>
|
||||
<th scope="row"><label for="disp_cust_price">시중가격</label></th>
|
||||
<td>
|
||||
<input type="text" name="disp_cust_amount" value="<?php echo number_format($it['it_cust_amount']); ?>" id="disp_cust_amount" readonly class="sit_ov_ro" size="8"> 원
|
||||
<input type="text" name="disp_cust_price" value="<?php echo number_format($it['it_cust_price']); ?>" id="disp_cust_price" readonly class="sit_ov_ro" size="8"> 원
|
||||
</td>
|
||||
</tr>
|
||||
<?php } // 전화문의 끝?>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="disp_sell_amount">판매가격</label></th>
|
||||
<th scope="row"><label for="disp_sell_price">판매가격</label></th>
|
||||
<td>
|
||||
<input type="text" name="disp_sell_amount" id="disp_sell_amount" readonly class="sit_ov_ro" size="8"> 원
|
||||
<input type="hidden" name="it_amount" value="0">
|
||||
<input type="text" name="disp_sell_price" id="disp_sell_price" readonly class="sit_ov_ro" size="8"> 원
|
||||
<input type="hidden" name="it_price" value="0">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -600,9 +600,9 @@ else
|
||||
|
||||
function amount_change()
|
||||
{
|
||||
var basic_amount = parseInt("<?php echo get_amount($it); ?>");
|
||||
var basic_amount = parseInt("<?php echo get_price($it); ?>");
|
||||
var basic_point = parseFloat("<?php echo $it['it_point']; ?>");
|
||||
var cust_amount = parseFloat("<?php echo $it['it_cust_amount']; ?>");
|
||||
var cust_amount = parseFloat("<?php echo $it['it_cust_price']; ?>");
|
||||
|
||||
var f = document.fitem;
|
||||
var opt1 = 0;
|
||||
@ -626,14 +626,14 @@ else
|
||||
var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5 + opt6;
|
||||
var point = parseInt(basic_point);
|
||||
|
||||
if (typeof(f.it_amount) != 'undefined')
|
||||
f.it_amount.value = amount;
|
||||
if (typeof(f.it_price) != 'undefined')
|
||||
f.it_price.value = amount;
|
||||
|
||||
if (typeof(f.disp_sell_amount) != 'undefined')
|
||||
f.disp_sell_amount.value = number_format(String(amount * ct_qty));
|
||||
|
||||
if (typeof(f.disp_cust_amount) != 'undefined')
|
||||
f.disp_cust_amount.value = number_format(String(cust_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;
|
||||
@ -647,7 +647,7 @@ else
|
||||
function fitemcheck(f, act)
|
||||
{
|
||||
// 판매가격이 0 보다 작다면
|
||||
if (f.it_amount.value < 0)
|
||||
if (f.it_price.value < 0)
|
||||
{
|
||||
alert("전화로 문의해 주시면 감사하겠습니다.");
|
||||
return;
|
||||
|
||||
@ -15,11 +15,11 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
||||
<a href="<?php echo $href; ?>" class="sct_a">
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<?php if ($row['it_cust_amount'] && !$row['it_gallery']) { ?>
|
||||
<s><?php echo display_amount($row['it_cust_amount']); ?></s>
|
||||
<?php if ($row['it_cust_price'] && !$row['it_gallery']) { ?>
|
||||
<s><?php echo display_price($row['it_cust_price']); ?></s>
|
||||
<?php } ?>
|
||||
<?php if (!$row['it_gallery']) { // 전시 상품이 아닐 때 ?>
|
||||
<span class="sct_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<?php } ?>
|
||||
<?php if ($row['it_basic']) { ?>
|
||||
<p><?php echo $row['it_basic']; ?></p>
|
||||
|
||||
@ -14,7 +14,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
<a href="<?php echo $href; ?>" class="sct_a">
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<span class="sct_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_icon">
|
||||
<?php echo display_item_icon($row); // 이미지 아이콘?>
|
||||
</span>
|
||||
|
||||
@ -54,7 +54,7 @@ $i_temp_point = (int)$_POST['od_temp_point'];
|
||||
|
||||
|
||||
// 주문금액이 상이함
|
||||
$sql = " select SUM(ct_amount * ct_qty) as od_amount from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' ";
|
||||
$sql = " select SUM(ct_price * ct_qty) as od_amount from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ((int)$row['od_amount'] !== $i_amount) {
|
||||
die("Error.");
|
||||
|
||||
@ -36,7 +36,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uq_id=<?php echo $row['uq_id']; ?>"><?php echo $row['od_id']; ?></a>
|
||||
</td>
|
||||
<td class="td_datetime"><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_bignum"><?php echo display_amount($row['orderamount']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_price($row['orderamount']); ?></td>
|
||||
<td class="td_stat">배송상태</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@ -67,7 +67,7 @@ $s_page = 'orderinquiryview.php';
|
||||
}
|
||||
else
|
||||
{
|
||||
$wanbul = display_amount($receipt_amount);
|
||||
$wanbul = display_price($receipt_amount);
|
||||
}
|
||||
|
||||
// 120615 : 취소된 값을 두번 빼주는 결과가 되어 코드 수정 (군포돼지님)
|
||||
@ -107,7 +107,7 @@ $s_page = 'orderinquiryview.php';
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo display_amount($cd['cd_amount']); ?></td>
|
||||
<td><?php echo display_price($cd['cd_amount']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">승인일시</th>
|
||||
@ -137,7 +137,7 @@ $s_page = 'orderinquiryview.php';
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo display_amount($cd['cd_amount']); ?></td>
|
||||
<td><?php echo display_price($cd['cd_amount']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">승인일시</th>
|
||||
@ -169,7 +169,7 @@ $s_page = 'orderinquiryview.php';
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">입금액</th>
|
||||
<td><?php echo display_amount($od['od_receipt_bank']); ?></td>
|
||||
<td><?php echo display_price($od['od_receipt_bank']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row">입금확인일시</th>
|
||||
@ -226,7 +226,7 @@ $s_page = 'orderinquiryview.php';
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">승인취소 금액</th>
|
||||
<td><?php echo display_amount($od['od_cancel_card']); ?></td>
|
||||
<td><?php echo display_price($od['od_cancel_card']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@ -236,7 +236,7 @@ $s_page = 'orderinquiryview.php';
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">환불 금액</th>
|
||||
<td><?php echo display_amount($od['od_refund_amount']); ?></td>
|
||||
<td><?php echo display_price($od['od_refund_amount']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@ -409,19 +409,19 @@ $s_page = 'orderinquiryview.php';
|
||||
<ul>
|
||||
<li>
|
||||
총 구매액
|
||||
<strong><?php echo display_amount($tot_amount); ?></strong>
|
||||
<strong><?php echo display_price($tot_amount); ?></strong>
|
||||
</li>
|
||||
<?php
|
||||
if ($od['od_dc_amount'] > 0) {
|
||||
echo '<li>';
|
||||
echo '할인액'.PHP_EOL;
|
||||
echo '<strong>'.display_amount($od['od_dc_amount']).'</strong>';
|
||||
echo '<strong>'.display_price($od['od_dc_amount']).'</strong>';
|
||||
echo '</li>';
|
||||
}
|
||||
if ($misu_amount > 0) {
|
||||
echo '<li>';
|
||||
echo '미결제액'.PHP_EOL;
|
||||
echo '<strong>'.display_amount($misu_amount).'</strong>';
|
||||
echo '<strong>'.display_price($misu_amount).'</strong>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
|
||||
@ -104,9 +104,7 @@ $total_count = $row['cnt'];
|
||||
for ($i=0; $i<$save['cnt']; $i++) {
|
||||
$sql = " select it_id,
|
||||
it_name,
|
||||
it_amount,
|
||||
it_amount2,
|
||||
it_amount3,
|
||||
it_price,
|
||||
it_basic,
|
||||
it_tel_inq,
|
||||
it_point,
|
||||
@ -125,7 +123,7 @@ $total_count = $row['cnt'];
|
||||
<b class="ssch_ct"><?php echo ($ca_temp) ? $ca_temp : $ca_name; ?></b>
|
||||
<a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo get_text($row['it_name']); ?></a>
|
||||
<?php echo it_name_icon($row); ?>
|
||||
<span class="ssch_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="ssch_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<p><?php echo $row['it_basic']; ?></p>
|
||||
</li>
|
||||
<?php } // for 끝 ?>
|
||||
|
||||
@ -44,7 +44,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
}
|
||||
}
|
||||
|
||||
$it_amount = get_amount($row);
|
||||
$it_price = get_price($row);
|
||||
|
||||
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
|
||||
|
||||
@ -72,7 +72,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
<input type="checkbox" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
||||
<?php } ?>
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo $row['it_name']; ?>">
|
||||
<input type="hidden" name="it_amount[<?php echo $i; ?>]" value="<?php echo $it_amount; ?>">
|
||||
<input type="hidden" name="it_price[<?php echo $i; ?>]" value="<?php echo $it_price; ?>">
|
||||
<input type="hidden" name="it_point[<?php echo $i; ?>]" value="<?php echo $row['it_point']; ?>">
|
||||
<input type="hidden" name="ct_qty[<?php echo $i; ?>]" value="1">
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user