$qty) { $error[$sdish] = ""; $a_dish = unserialize($sdish); if(isset($_POST['revisit'])) { $pure_char_str = remove_symbols($sdish); $updated_qty = $_POST['qty'.$pure_char_str]; if(isset($_POST['remove'.$pure_char_str])) { //Remove this item unset($_SESSION['cart'][$sdish]); } else { //Update qty of item if (!update_tocart($a_dish, $updated_qty)) $error[$sdish] = "Invalid Quantity"; } } } } //End of update and remove //Check if cart is empty after update $empty = 0; ?>



| $50 Minimum On All Online Orders | |||||
| Dish | Price | Quanity | Total | Remove | |
| '.print_full_name($a_dish).' | $'.sprintf("%.2f",$price).' | $'.sprintf("%.2f",$price * $qty).' | '.$error[$sdish].' | ||
| Subtotal: | $'.sprintf("%.2f",get_total()).' | ||||
| Tax (5%): | $'.sprintf("%.2f",$tax).' | ||||
| Total: | $'.sprintf("%.2f",$gtotal).' | ||||
| Go To Checkout > | |||||