링크
http://sir.co.kr/bbs/board.php?bo_table=yc4_qa&wr_id=11659 (40) http://happyjung.com/gnuboard/bbs/board.php?bo_table=lecture&wr_id=540 (56)기본적으로 상품목록 페이지에서는 부가세를 포함하지 않은 가격으로 보이고
장바구니에 추가할때 부가세를 포함된 금액으로 쿼리전송,
장바구니 및 주문현황에서는 부가세 없는 금액을 별도 계산하여 소비자에게 원래 금액을 보이도록 하였습니다.
shop/cartupdate.php 158라인의
// 장바구니에 Insert
$sql = " insert $g4[yc4_cart_table]
set on_uid = '$tmp_on_uid',
it_id = '$_POST[it_id]',
it_opt1 = '$_POST[it_opt1]',
it_opt2 = '$_POST[it_opt2]',
it_opt3 = '$_POST[it_opt3]',
it_opt4 = '$_POST[it_opt4]',
it_opt5 = '$_POST[it_opt5]',
it_opt6 = '$_POST[it_opt6]',
ct_status = '쇼핑',
ct_amount = '$_POST[it_amount]',
ct_point = '$_POST[it_point]',
ct_point_use = '0',
ct_stock_use = '0',
ct_qty = '$_POST[ct_qty]',
ct_time = '$g4[time_ymdhis]',
ct_ip = '$REMOTE_ADDR' ";
sql_query($sql);
를
$it_amount = $_POST[it_amount] * 1.1;
// 장바구니에 Insert
$sql = " insert $g4[yc4_cart_table]
set on_uid = '$tmp_on_uid',
it_id = '$_POST[it_id]',
it_opt1 = '$_POST[it_opt1]',
it_opt2 = '$_POST[it_opt2]',
it_opt3 = '$_POST[it_opt3]',
it_opt4 = '$_POST[it_opt4]',
it_opt5 = '$_POST[it_opt5]',
it_opt6 = '$_POST[it_opt6]',
ct_status = '쇼핑',
ct_amount = '$it_amount',
ct_point = '$_POST[it_point]',
ct_point_use = '0',
ct_stock_use = '0',
ct_qty = '$_POST[ct_qty]',
ct_time = '$g4[time_ymdhis]',
ct_ip = '$REMOTE_ADDR' ";
sql_query($sql);
와 같이 수정
shop/cartsub.inc.php 18라인
<form name=frmcartlist method=post style="padding:0px;">
<table width=98% cellpadding=0 cellspacing=0 align=center>
<colgroup width=80>
<colgroup width=''>
<colgroup width=80>
<colgroup width=80>
<colgroup width=80>
<colgroup width=80>
<? if ($colspan == 7) echo '<colgroup width=50>'; ?>
<tr><td colspan='<?=$colspan?>' height=2 class=c1></td></tr>
<tr align=center height=28 class=c2>
<td colspan=2>상품명</td>
<td>수량</td>
<td>판매가8</td>
<td>소계8</td>
<td>포인트</td>
를 다음과 같이 수정
<form name=frmcartlist method=post style="padding:0px;">
<table width=98% cellpadding=0 cellspacing=0 align=center>
<colgroup width=80>
<colgroup width=''>
<colgroup width=60>
<colgroup width=80>
<colgroup width=80>
<colgroup width=60>
<? if ($colspan == 7) echo '<colgroup width=50>'; ?>
<tr><td colspan='<?=$colspan?>' height=2 class=c1></td></tr>
<tr align=center height=28 class=c2>
<td colspan=2>상품명</td>
<td>수량</td>
<td align="right">판매가<br />(VAT)</td>
<td align="right">소계 <br />(VAT포함)</td>
<td align="right">포인트</td>
shop/cartsub.inc.php 115라인
// 수량, 입력(수량)
if ($s_page == "cart.php")
echo "<td align=center><input type=text id='ct_qty_{$i}' name='ct_qty[{$i}]' value='$row[ct_qty]' size=4 maxlength=6 class=ed style='text-align:right;' autocomplete='off'></td>";
else
echo "<td align=center>$row[ct_qty]</td>";
$hp_sell_amount = $sell_amount / 1.1; // 부가세 제외가격 (2008-07-24 해피정 추가)
$hp_sell_amount_vat = $hp_sell_amount * 0.1; // 부가세 (2008-07-24 해피정 추가)
echo "<td align=right>" . number_format($hp_sell_amount) . "<br>(" . number_format($hp_sell_amount_vat) . ")</td>"; // 2008-07-24 해피정 수정
// echo "<td align=right>" . number_format($row[ct_amount]) . "</td>"; // 기존코드
댓글 12개
게시글 목록
| 번호 | 제목 |
|---|---|
| 657 | |
| 654 | |
| 651 | |
| 649 | |
| 647 | |
| 642 | |
| 640 | |
| 639 | |
| 634 | |
| 630 | |
| 945 | |
| 623 | |
| 617 | |
| 613 | |
| 610 | |
| 609 | |
| 607 | |
| 604 | |
| 602 | |
| 597 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기