Cart

Your cart is woefully empty.

'; } else { echo ''; $total = 0; //We iterate over all the items in $_SESSION['cart']. //Each item represents a "row," or a single product to buy, in the shopping cart. foreach($_SESSION['cart'] as $item) { //Recall that the format of the $item associative array is the same as the one //defined in add.php, since the array has simply been passed to this page //via the $_SESSION variable. $total = $total + $item->getTotal(); ?>
ItemUnit priceNo. of unitsSubtotal
getName(); ?> $getPrice(); ?> getQuantity(); ?> $getTotal(); ?> remove

Grand total: $


Go buy something