diff --git a/app.js b/app.js
index ea6b99b35cfd69728e1f7bc6ca1eed5dfd7681fc..e807d3ea950528a36daf57e7e7e752b7ac5a62aa 100644
--- a/app.js
+++ b/app.js
@@ -56,6 +56,7 @@ app.use(express.static(path.join(__dirname, 'public')));
 // Session และ routes
 app.get('/', (req, res) => {
     if (req.session.user) {
+        res.locals.user = req.session.user;  // ส่งข้อมูล user จาก session ไปยัง template
         res.sendFile(path.join(__dirname, 'public', 'index.html'));
     } else {
         res.redirect('/login');
diff --git a/public/checkout.html b/public/checkout.html
index 37808709368759616114b6c132771d51cffe8213..8c059dd2c720e83a75320417413e2e27bdf17de5 100644
--- a/public/checkout.html
+++ b/public/checkout.html
@@ -15,9 +15,13 @@
         <!-- Cart items will be dynamically loaded here -->
     </div>
 
+    <button>
+        <div class="checkout-button" onclick="processCheckout()">Confirm and Checkout</div>
+    </button>
+
     <footer>
         <p>&copy; 2025 ASA</p>
-        <div class="checkout-button" onclick="processCheckout()">Confirm and Checkout</div>
+        
     </footer>
 
     <script>