fetch( "SELECT * FROM orders WHERE order_id = :id AND customer_id = :cid", ['id' => $orderId, 'cid' => $customer['customer_id']] ); if (!$order) { redirect('/account/orders.php'); } $items = json_decode($order['items'], true); $shippingAddress = json_decode($order['shipping_address'] ?? '{}', true); $extraHead = ''; require_once __DIR__ . '/../includes/header.php'; require_once __DIR__ . '/includes/sidebar.php'; $statusClass = match($order['order_status']) { 'pending' => 'warning', 'confirmed', 'processing' => 'primary', 'shipped' => 'primary', 'delivered' => 'success', 'cancelled', 'refunded' => 'error', default => 'primary' }; ?>
Back to Orders

Order #

$step): ?>

Order Items

Product Qty Price Total

Shipping Information

Shipping Address



,

Order Summary

Subtotal
0): ?>
Discount -
Shipping 0 ? formatCurrency($order['shipping']) : 'Free' ?>
Tax
0): ?>
Wallet -
Total

Payment

Method
Status
Order Date
Last Updated

Need help with this order?

Contact Support