From b775eea12b0330dd53cfcaa5deadceb3a2e3428b Mon Sep 17 00:00:00 2001 From: ssbg04 <143066036+ssbg04@users.noreply.github.com> Date: Tue, 24 Jun 2025 07:52:06 +0800 Subject: [PATCH] Update view.php --- customer/products/view.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/customer/products/view.php b/customer/products/view.php index 8387e8d..6628114 100644 --- a/customer/products/view.php +++ b/customer/products/view.php @@ -7,7 +7,7 @@ require_once '../../config/database.php'; // Check if product ID is provided if (!isset($_GET['id'])) { - header("Location: /unimarket/customer/products/browse.php"); + header("Location: /customer/products/browse.php"); exit(); } @@ -22,7 +22,7 @@ $stmt->execute([$product_id]); $product = $stmt->fetch(); if (!$product) { - header("Location: /unimarket/customer/products/browse.php"); + header("Location: /customer/products/browse.php"); exit(); } @@ -86,10 +86,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['add_to_cart'])) {