shoppingmallv2 init...
This commit is contained in:
parent
58784c15ad
commit
683a32708d
@ -19,8 +19,8 @@
|
||||
<tbody>
|
||||
<?php $cnt = 0 ?>
|
||||
<?php $order_cnt = 0 ?>
|
||||
<?php $total_price = 0 ?>
|
||||
<?php $total_sale = 0 ?>
|
||||
<?php $order_price = 0 ?>
|
||||
<?php $order_sale = 0 ?>
|
||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status == DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
||||
<td nowrap>
|
||||
@ -36,8 +36,8 @@
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($entity->status == 'unuse') : ?>
|
||||
<?php $total_price += $entity->price ?>
|
||||
<?php $total_sale += $entity->sale ?>
|
||||
<?php $order_price += $entity->price ?>
|
||||
<?php $order_sale += $entity->sale ?>
|
||||
<?php $order_cnt++ ?>
|
||||
<?php endif ?>
|
||||
<?php $cnt++ ?>
|
||||
@ -46,13 +46,12 @@
|
||||
</table>
|
||||
</div>
|
||||
<div id="order" class="col-2">
|
||||
<?php $price = $total_price - $total_sale ?>
|
||||
<div class="orderbox">
|
||||
<?= form_open(URLS['Billing'], ['method' => 'post'], $viewDatas['forms']['hiddens']) ?>
|
||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||
<?= form_hidden("order_uids[]", $entity->getPrimaryKey()) ?>
|
||||
<?php endforeach ?>
|
||||
<?= form_hidden("price", $price) ?>
|
||||
<?= form_hidden("price", $order_price - $order_sale) ?>
|
||||
<div class="title">결제정보</div>
|
||||
<div class="item">
|
||||
<span class="label">상품수</span>
|
||||
@ -60,18 +59,18 @@
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="label">상품금액</span>
|
||||
<span class="value"><?= number_format($total_price) ?>원</span>
|
||||
<span class="value"><?= number_format($order_price) ?>원</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="label">할인금액</span>
|
||||
<span class="value"><?= number_format($total_sale) ?>원</span>
|
||||
<span class="value"><?= number_format($order_sale) ?>원</span>
|
||||
</div>
|
||||
<div class="item total">
|
||||
<span class="label">총결제금액</span>
|
||||
<span class="value"><?= number_format($price) ?>원</span>
|
||||
<span class="value"><?= number_format($order_price - $order_sale) ?>원</span>
|
||||
</div>
|
||||
<div class="item submit">
|
||||
<?php if ($price) : ?>
|
||||
<?php if ($order_cnt) : ?>
|
||||
<?= form_submit('', '구매하기', array('', "class" => "btn btn-outline btn-primary")); ?>
|
||||
<?php else : ?>
|
||||
결제할 주문건수가 없습니다.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user