0) { foreach ($cart as $i => $qty) { $item = new Item($i); $listhtml .= RenderItem::cart($item, $qty); $total += ($item->getPrice() * $qty); } } else { $listhtml = "
The cart is empty.