레벨별 할인을 줬을때 장바구니 상세내역 단가
관련링크
https://sir.kr/yc5_tip/860
73회 연결
본문
쇼핑몰 레벨별로 금액차이가 필요해서 링크에 첨부되어있는 글을 참고하여 작업하고 확인하는데 상세보기에 단가가 레벨에 맞게 안 나와서요..
테스트 상품으로 가격을 지정해서 장바구니에 넣어보고 결제가격까지 잘 나오는데
특별가격으로 확인을 하던중 장바구니에 상세내역을 눌러봤더니 단가는 비회원가격으로 나와서요.
<p style="font-size:14px;margin:5px;font-weight:900;color:green">주문</p>
<div id="sit_sel_option">
<ul id="sit_opt_added">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<th width="20%">(+)</th>
<th width="20%">(-)</th>
<th width="20%">수량</th>
<th width="20%">단가</th>
<th width="20%">합계</th>
</tr>
<?php
for($i=0; $i < count($a2cnt); $i++) {
$a2 = $a2 + $a2cnt[$i];
$sphcyl = explode("/", $a2text[$i]);
echo "<tr align='center'>";
echo "<td>".$sphcyl[0]."</td>";
echo "<td>".$sphcyl[1]."</td>";
echo "<td>".$a2cnt[$i]."</td>";
echo "<td>".number_format($it['it_price'])."</td>";
echo "<th>".number_format($a2cnt[$i]*$it['it_price'])."</th>";
echo "</tr>";
}
?>
<tr>
<th></th>
<th></th>
<th><?php echo $a2;?>개</th>
<th colspan="2"><p style="text-align:right;margin:5px 20px;color:green"><?php echo number_format($row['a2price']);?>원</p></th>
</tr>
</table>
</ul>
</div>
여기쯤 수정을 해야할거같은데... 어디를 수정해야 레벨별로 단가가격을 확인 할수있을까요ㅠㅜ?
시작한지 얼마 안 된 초보자라 도움 부탁드립니다.
!-->
답변을 작성하시기 전에 로그인 해주세요.