Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit a5ad21e3 authored by 65160260's avatar 65160260
Browse files

Edit cart.php

parent 5d7370b3
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ $cart_items = $stmt->fetchAll(PDO::FETCH_ASSOC); ...@@ -53,6 +53,7 @@ $cart_items = $stmt->fetchAll(PDO::FETCH_ASSOC);
<?php if (empty($cart_items)): ?> <?php if (empty($cart_items)): ?>
<p>ไม่มีสินค้าในตะกร้า</p> <p>ไม่มีสินค้าในตะกร้า</p>
<?php else: ?> <?php else: ?>
<div class="table-container">
<table border="1" cellpadding="5" cellspacing="0"> <table border="1" cellpadding="5" cellspacing="0">
<tr> <tr>
<th>User ID</th> <th>User ID</th>
...@@ -89,6 +90,7 @@ $cart_items = $stmt->fetchAll(PDO::FETCH_ASSOC); ...@@ -89,6 +90,7 @@ $cart_items = $stmt->fetchAll(PDO::FETCH_ASSOC);
<td colspan="2"><strong><?= number_format($total, 2) ?> บาท</strong></td> <td colspan="2"><strong><?= number_format($total, 2) ?> บาท</strong></td>
</tr> </tr>
</table> </table>
</div>
<br> <br>
<a href="checkout.php">🛒 ดำเนินการชำระเงิน</a> <a href="checkout.php">🛒 ดำเนินการชำระเงิน</a>
<?php endif; ?> <?php endif; ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment