lokesh341's picture
Update templates/final_order.html
bddcee1 verified
raw
history blame
1.27 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Final Order</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
.order-summary {
padding: 15px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #f9f9f9;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="order-summary">
<h2>Final Order Summary</h2>
<div id="order-details"></div>
<button onclick="goBack()">Go Back to Menu</button>
</div>
<script>
// Retrieve the final order summary from session storage
const summary = sessionStorage.getItem('finalOrderSummary');
if (summary) {
document.getElementById('order-details').innerHTML = summary;
} else {
document.getElementById('order-details').innerHTML = "<p>No order found.</p>";
}
// Go back to the menu page
function goBack() {
window.location.href = "/index.html"; // Ensure this is the menu page
}
</script>
</body>
</html>