diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-05-21 16:37:29 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-05-21 16:37:29 +0200 |
commit | 690516d932e6894938622472222cdfcb06740a83 (patch) | |
tree | 13c9488bde811d84748ffa0dfcd72297ad7819dd /public/cart.php | |
parent | 1bb67296c43b662cf00882971fcb3df655d7302b (diff) |
place order
Diffstat (limited to 'public/cart.php')
-rw-r--r-- | public/cart.php | 2 |
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; } } |