From 690516d932e6894938622472222cdfcb06740a83 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 21 May 2023 16:37:29 +0200 Subject: place order --- public/cart.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'public/cart.php') diff --git a/public/cart.php b/public/cart.php index d4dfcc6..f3b9b5e 100644 --- a/public/cart.php +++ b/public/cart.php @@ -12,6 +12,7 @@ $statement = $cursor->prepare("delete from orderproduct where product = ? and `order` = cart(?)"); $statement->bind_param("ii", $_POST['product_id'], $user_id); $statement->execute(); + $cart_count = get_cart_count(); break; } case "add": { @@ -23,6 +24,7 @@ $statement->bind_param("ii", $_POST['product_id'], $user_id); $statement->execute(); $statement->get_result()/*->fetch_object()*/; + $cart_count = get_cart_count(); break; } } -- cgit v1.2.3