-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorder.html
More file actions
223 lines (210 loc) · 10.6 KB
/
order.html
File metadata and controls
223 lines (210 loc) · 10.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Order - BakedInAki</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="nav-container">
<a href="index.html" class="logo">
<img src="MadeInAki.png" alt="BakedInAki logo" class="logo-img">
<span class="logo-text">
<span class="baked">Baked</span><span class="in">in</span><span class="aki">Aki</span>
</span>
</a>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="menu.html">Menu</a></li>
<li><a href="order.html">Order</a></li>
<li><a href="track.html">Track Order</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
<div class="cart-icon" title="View Cart">
🛒
<span class="cart-count" style="display: none;">0</span>
</div>
<button class="mobile-menu-btn">☰</button>
</div>
</nav>
<!-- Page Header -->
<section style="background: linear-gradient(135deg, var(--primary-yellow) 0%, #FFA500 100%); padding: 3rem 2rem; text-align: center;">
<h1 style="font-size: 2.5rem; margin-bottom: 0.5rem;">🛒 Checkout</h1>
<p style="color: #333;">Complete your order</p>
</section>
<!-- Order Section -->
<section class="section">
<div style="display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start;" id="order-container">
<!-- Order Form -->
<div>
<!-- Cart Items -->
<div class="order-section">
<h3>📦 Your Order</h3>
<div id="order-items">
<!-- Items loaded via JS -->
</div>
</div>
<!-- Customer Information -->
<div class="order-section">
<h3>👤 Customer Information</h3>
<form id="order-form">
<div class="form-group">
<label for="name">Full Name *</label>
<input type="text" id="name" name="name" required placeholder="Your full name">
</div>
<div class="form-group">
<label for="phone">Phone Number *</label>
<input type="tel" id="phone" name="phone" required placeholder="09XX-XXX-XXXX">
</div>
<div class="form-group">
<label for="email">Email (Optional)</label>
<input type="email" id="email" name="email" placeholder="yourname@example.com">
</div>
<!-- Delivery Options -->
<div class="form-group">
<label>Delivery Method *</label>
<div class="delivery-options">
<label class="delivery-option selected" id="pickup-option">
<input type="radio" name="delivery" value="pickup" checked>
<div>
<strong>🏪 Pickup</strong>
<p style="font-size: 0.85rem; color: #666; margin-top: 0.25rem;">Pick up at store</p>
<p style="font-size: 0.85rem; color: #32CD32;">FREE</p>
</div>
</label>
<label class="delivery-option" id="delivery-option">
<input type="radio" name="delivery" value="delivery">
<div>
<strong>🚗 Delivery</strong>
<p style="font-size: 0.85rem; color: #666; margin-top: 0.25rem;">Within Dasmariñas</p>
<p style="font-size: 0.85rem; color: #32CD32;">₱50.00</p>
</div>
</label>
</div>
</div>
<!-- Delivery Address (shown when delivery selected) -->
<div class="form-group" id="address-group" style="display: none;">
<label for="address">Delivery Address *</label>
<textarea id="address" name="address" rows="3" placeholder="House/Unit #, Street, Barangay, Dasmariñas, Cavite"></textarea>
</div>
<!-- Special Instructions -->
<div class="form-group">
<label for="notes">Special Instructions (Optional)</label>
<textarea id="notes" name="notes" rows="2" placeholder="Any special requests or instructions..."></textarea>
</div>
<!-- Payment Method -->
<div class="form-group">
<label>Payment Method *</label>
<div class="delivery-options">
<label class="delivery-option selected">
<input type="radio" name="payment" value="cod" checked>
<div>
<strong>💵 Cash on Delivery/Pickup</strong>
<p style="font-size: 0.85rem; color: #666; margin-top: 0.25rem;">Pay when you receive</p>
</div>
</label>
<label class="delivery-option">
<input type="radio" name="payment" value="gcash">
<div>
<strong>📱 GCash</strong>
<p style="font-size: 0.85rem; color: #666; margin-top: 0.25rem;">Details shared after order confirmation</p>
</div>
</label>
</div>
</div>
</form>
</div>
</div>
<!-- Order Summary -->
<div class="order-section" style="position: sticky; top: 100px;">
<h3>📋 Order Summary</h3>
<div class="order-summary">
<div id="summary-items">
<!-- Summary items loaded via JS -->
</div>
<div class="summary-item">
<span>Subtotal</span>
<span id="subtotal">₱0.00</span>
</div>
<div class="summary-item">
<span>Delivery Fee</span>
<span id="delivery-fee">₱0.00</span>
</div>
<div class="summary-item summary-total">
<span>Total</span>
<span id="total">₱0.00</span>
</div>
</div>
<button type="submit" class="checkout-btn" id="place-order-btn" style="margin-top: 1.5rem;">
Place Order 🛒
</button>
<a href="menu.html" style="display: block; text-align: center; margin-top: 1rem; color: #666; text-decoration: none;">
← Continue Shopping
</a>
</div>
</div>
<!-- Empty Cart State -->
<div id="empty-cart" style="display: none; text-align: center; padding: 4rem 2rem;">
<div style="font-size: 5rem; margin-bottom: 1rem;">🛒</div>
<h2>Your cart is empty</h2>
<p style="color: #666; margin-bottom: 2rem;">Add some delicious baked goods to your cart!</p>
<a href="menu.html" class="btn btn-primary">Browse Menu</a>
</div>
</section>
<!-- Order Success Modal -->
<div class="modal-overlay" id="success-modal">
<div class="modal" style="text-align: center; padding: 2rem;">
<div style="font-size: 4rem; margin-bottom: 1rem;">✅</div>
<h2 style="margin-bottom: 0.5rem;">Order Placed Successfully!</h2>
<p style="color: #666; margin-bottom: 1rem;">Thank you for your order!</p>
<div style="background: #f5f5f5; padding: 1rem; border-radius: 10px; margin-bottom: 1.5rem;">
<p style="font-size: 0.9rem; color: #666;">Your Order Number</p>
<p style="font-size: 1.5rem; font-weight: bold; color: #32CD32;" id="order-number">AKI-YYYYMMDD-001</p>
</div>
<p style="font-size: 0.9rem; color: #666; margin-bottom: 1.5rem;">
Save this order number to track your order status.
</p>
<div style="display: flex; gap: 1rem; justify-content: center;">
<a href="track.html" class="btn btn-primary">Track Order</a>
<a href="index.html" class="btn btn-secondary">Back to Home</a>
</div>
</div>
</div>
<!-- Footer -->
<footer class="footer">
<div class="footer-content">
<div class="footer-section">
<h4>🍞 BakedInAki</h4>
<p>Malakasang Bakery Sa Buong Dasmariñas</p>
</div>
<div class="footer-section">
<h4>Quick Links</h4>
<a href="menu.html">Menu</a>
<a href="order.html">Order Online</a>
<a href="track.html">Track Order</a>
<a href="contact.html">Contact</a>
</div>
<div class="footer-section">
<h4>Contact Us</h4>
<p>📍 Dasmariñas, Cavite</p>
<p>📞 Shared after order confirmation</p>
</div>
<div class="footer-section">
<h4>Store Hours</h4>
<p>Mon-Sat: 6AM - 8PM</p>
<p>Sunday: 7AM - 6PM</p>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 BakedInAki. All rights reserved.</p>
</div>
</footer>
<script src="data/products.js"></script>
<script src="js/main.js"></script>
<script src="js/order.js"></script>
</body>
</html>