Enter your order ID to see the latest updates on your shipment.
Generating Order Summary...
Please wait, this may take a moment.
${order.customerName}
${order.shippingAddress}
Order Items
${itemsHtml}
Tracking History
${historyHtml}
`;
// Activate progress bar steps
document.querySelectorAll('.progress-step').forEach((step, index) => {
if (index < currentStepIndex) step.classList.add('completed');
if (index === currentStepIndex) step.classList.add('active');
});
document.getElementById('download-pdf-btn').addEventListener('click', () => generatePdf(order.id));
lucide.createIcons();
};
const renderDataConfig = () => {
const configContent = document.getElementById('content-config');
if (!configContent) return;
// For simplicity, we'll just show the raw JSON data which can be edited.
configContent.innerHTML = `
Order Data (JSON)
Edit the JSON data below to change the available orders for tracking. Ensure the format is correct.