diff --git a/cart.php b/cart.php index 8328da014220b794a00afd429a9e2704c5376f40..974045882ae5a1600e7adf598e6c23a62ad75a62 100644 --- a/cart.php +++ b/cart.php @@ -51,7 +51,9 @@ $cart_items = $stmt->fetchAll(PDO::FETCH_ASSOC); <h2>ตะกร้าสินค้า</h2> <?php if (empty($cart_items)): ?> +<div style="text-align: center;"> <p>ไม่มีสินค้าในตะกร้า</p> +</div> <?php else: ?> <div class="table-container"> <table border="1" cellpadding="5" cellspacing="0"> @@ -92,5 +94,7 @@ $cart_items = $stmt->fetchAll(PDO::FETCH_ASSOC); </table> </div> <br> + <div style="text-align: center;"> <a href="checkout.php">🛒 ดำเนินการชำระเงิน</a> + </div> <?php endif; ?>