aboutsummaryrefslogtreecommitdiff
path: root/public/cart.php
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-21 16:37:29 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-21 16:37:29 +0200
commit690516d932e6894938622472222cdfcb06740a83 (patch)
tree13c9488bde811d84748ffa0dfcd72297ad7819dd /public/cart.php
parent1bb67296c43b662cf00882971fcb3df655d7302b (diff)
place order
Diffstat (limited to 'public/cart.php')
-rw-r--r--public/cart.php2
1 files changed, 2 insertions, 0 deletions
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;
}
}