aboutsummaryrefslogtreecommitdiff
path: root/public/cart.php
diff options
context:
space:
mode:
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;
}
}