You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (isset($_POST['update'])) { //If update button is pushed, loop over the cart items and if right item name is found (Comes from "hidden" input), update the product quantity
foreach ($_SESSION['cart'] as $key => $value) { //key = ID, value = Whole associative array