From f84f76a693c9a24273688c239099998b61eedf16 Mon Sep 17 00:00:00 2001 From: ssbg04 <143066036+ssbg04@users.noreply.github.com> Date: Tue, 24 Jun 2025 07:53:09 +0800 Subject: [PATCH] Update complete.php --- customer/orders/complete.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/customer/orders/complete.php b/customer/orders/complete.php index 09a4457..64def94 100644 --- a/customer/orders/complete.php +++ b/customer/orders/complete.php @@ -7,7 +7,7 @@ require_once '../../config/database.php'; // Check if order ID is provided if (!isset($_GET['order_id'])) { - header("Location: /unimarket/customer/orders/list.php"); + header("Location: /customer/orders/list.php"); exit(); } @@ -23,7 +23,7 @@ $stmt->execute([$order_id, $_SESSION['user_id']]); $order = $stmt->fetch(); if (!$order) { - header("Location: /unimarket/customer/orders/list.php"); + header("Location: /customer/orders/list.php"); exit(); } @@ -43,7 +43,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['complete_order'])) { $success_message = 'Order has been marked as completed. Thank you for your purchase!'; // Redirect to order view page after a short delay - header("Refresh: 2; URL=/unimarket/customer/orders/view.php?order_id=" . $order_id); + header("Refresh: 2; URL=/customer/orders/view.php?order_id=" . $order_id); } catch (Exception $e) { $pdo->rollBack(); $error_message = 'An error occurred while completing the order. Please try again.'; @@ -57,8 +57,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['complete_order'])) {