0) { remove_product($_REQUEST['pid']); } else if ($_REQUEST['command'] == 'clear') { unset($_SESSION['cart']); } else if ($_REQUEST['command'] == 'update') { $max = count($_SESSION['cart']); for ($i = 0; $i < $max; $i++) { $pid = $_SESSION['cart'][$i]['productid']; $q = intval($_REQUEST['product' . $pid]); if ($q > 0 && $q <= 999) { $_SESSION['cart'][$i]['qty'] = $q; } else { $msg = 'Some products not updated!, quantity must be a number between 1 and 999'; } } } ?> Event Decorating Academy - Shopping Cart Event Decorating Academy - Become Certified in Professional Event Decorating in as little as 12 Days

 

 

Your Shopping Cart

'; $max = count($_SESSION['cart']); for ($i = 0; $i < $max; $i++) { $pid = $_SESSION['cart'][$i]['productid']; $q = $_SESSION['cart'][$i]['qty']; $pname = get_product_name($pid); if ($q == 0) continue; $pre_tax_total = number_format(get_order_total(), 2); $deposit_total = number_format(get_deposit_total(), 2); ?>
ItemNameDeposit ReqAmount Options
1 $