From 697d12f1efe24670a2dc8fa39339a41e8a3001b3 Mon Sep 17 00:00:00 2001 From: ssbg04 <143066036+ssbg04@users.noreply.github.com> Date: Tue, 24 Jun 2025 07:52:46 +0800 Subject: [PATCH] Update view.php --- customer/orders/view.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/customer/orders/view.php b/customer/orders/view.php index 4383c58..2ba6ae4 100644 --- a/customer/orders/view.php +++ b/customer/orders/view.php @@ -7,7 +7,7 @@ require_once '../../config/database.php'; // Get order ID from URL if (!isset($_GET['order_id'])) { - header("Location: /unimarket/customer/orders/list.php"); + header("Location: /customer/orders/list.php"); exit(); } @@ -25,7 +25,7 @@ $order = $stmt->fetch(); // Verify order belongs to current user if (!$order || $order['customer_id'] != $_SESSION['user_id']) { - header("Location: /unimarket/customer/orders/list.php"); + header("Location: /customer/orders/list.php"); exit(); } @@ -88,7 +88,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $pdo->commit(); // Redirect to orders list - header("Location: /unimarket/customer/orders/list.php"); + header("Location: /customer/orders/list.php"); exit(); } catch (PDOException $e) { // Rollback transaction on error @@ -121,8 +121,8 @@ $total_items = array_sum(array_column($order_items, 'quantity')); Order Details - UniMarket - - + +