async placeOrder() { this.placing = true; try { const order = await apiClient.post( `/api/v1/public/vendors/${window.vendorId}/orders`, { shipping_address_id: this.selectedShippingAddress, billing_address_id: this.selectedBillingAddress, shipping_method: 'standard', payment_method: this.paymentMethod, customer_notes: '' } ); this.orderNumber = order.order_number; this.currentStep = 4; // Clear cart from localStorage clearCart(); } catch (error) { showNotification(error.message || 'Failed to place order', 'error'); } finally { this.placing = false; } } } } {% endblock %} ``` #### Customer Order History (`templates/shop/account/orders.html`) ```html {% extends "shop/base_shop.html" %} {% block content %}
No orders found
| Order # | Customer | Date | Items | Total | Status | Payment | Actions |
|---|---|---|---|---|---|---|---|
| € |
Quantity:
€
Subtotal: €
Subtotal: €
Shipping: €
Tax: €
Total: €
Thank you for your order!
Order Number:
We've sent a confirmation email to your address.
View Order Details