마일리지 기능 추가 및 상품 포인트 유형 추가
This commit is contained in:
@ -319,7 +319,7 @@ else
|
||||
<tr>
|
||||
<th scope="row">판매가격</th>
|
||||
<td>
|
||||
<?php echo number_format($it['it_price']); ?> 원
|
||||
<?php echo number_format(get_price($it)); ?> 원
|
||||
<input type="hidden" name="it_price" value="<?php echo get_price($it); ?>">
|
||||
</td>
|
||||
</tr>
|
||||
@ -337,8 +337,16 @@ else
|
||||
<tr>
|
||||
<th scope="row">포인트</th>
|
||||
<td>
|
||||
<?php echo number_format($it['it_point']); ?> 점
|
||||
<input type="hidden" name="it_point" value="<?php echo $it['it_point']; ?>">
|
||||
<?php
|
||||
if($it['it_point_type']) {
|
||||
$it_point = floor(($it['it_price'] * ($it['it_point'] / 100) / 10)) * 10;
|
||||
} else {
|
||||
$it_point = $it['it_point'];
|
||||
}
|
||||
|
||||
echo number_format($it_point);
|
||||
?> 점
|
||||
<input type="hidden" name="it_point" value="<?php echo $it_point; ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user